mirror of
https://github.com/semaf/MFRC522_I2C_Library.git
synced 2025-07-29 21:07:13 +02:00
PCD_Authenticate last 4 bytes used
Thanks to @cyp-git
This commit is contained in:
committed by
GitHub
parent
5d2ebe24fc
commit
9a2593d7d5
@ -816,7 +816,7 @@ byte MFRC522::PCD_Authenticate(byte command, ///< PICC_CMD_MF_AUTH_KEY_A or PIC
|
|||||||
sendData[2+i] = key->keyByte[i];
|
sendData[2+i] = key->keyByte[i];
|
||||||
}
|
}
|
||||||
for (byte i = 0; i < 4; i++) { // The first 4 bytes of the UID
|
for (byte i = 0; i < 4; i++) { // The first 4 bytes of the UID
|
||||||
sendData[8+i] = uid->uidByte[i];
|
sendData[8+i] = uid->uidByte[i+uid->size-4];
|
||||||
}
|
}
|
||||||
|
|
||||||
// Start the authentication.
|
// Start the authentication.
|
||||||
|
Reference in New Issue
Block a user