Skip to content

Commit

Permalink
Merge pull request #28 from seisfeld/picc-auth
Browse files Browse the repository at this point in the history
ändert KEY_B zu KEY_A
  • Loading branch information
xfjx committed Mar 13, 2019
2 parents d7305a3 + 36de9ad commit 92fe3f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tonuino.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand Down

0 comments on commit 92fe3f4

Please sign in to comment.