1
0
mirror of https://github.com/xfjx/TonUINO.git synced 2025-08-31 19:32:03 +02:00

Merge pull request #28 from seisfeld/picc-auth

ändert KEY_B zu KEY_A
This commit is contained in:
Thorsten Voß
2019-03-13 20:28:49 +01:00
committed by GitHub

View File

@@ -1172,9 +1172,9 @@ void writeCard(nfcTagObject nfcTag) {
(mifareType == MFRC522::PICC_TYPE_MIFARE_1K ) ||
(mifareType == MFRC522::PICC_TYPE_MIFARE_4K ) )
{
Serial.println(F("Authenticating again using key B..."));
Serial.println(F("Authenticating again using key A..."));
status = mfrc522.PCD_Authenticate(
MFRC522::PICC_CMD_MF_AUTH_KEY_B, trailerBlock, &key, &(mfrc522.uid));
MFRC522::PICC_CMD_MF_AUTH_KEY_A, trailerBlock, &key, &(mfrc522.uid));
}
else if (mifareType == MFRC522::PICC_TYPE_MIFARE_UL )
{