Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Authentication key fix

  • Loading branch information...
commit 3fc96415b470f5b44da68a9a886c77c73b755045 1 parent 8e947d2
K. Townsend authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Adafruit_NFCShield_I2C.cpp
View
2  Adafruit_NFCShield_I2C.cpp
@@ -585,7 +585,7 @@ uint8_t Adafruit_NFCShield_I2C::mifareclassic_AuthenticateBlock (uint8_t * uid,
// Prepare the authentication command //
pn532_packetbuffer[0] = PN532_COMMAND_INDATAEXCHANGE; /* Data Exchange Header */
pn532_packetbuffer[1] = 1; /* Max card numbers */
- pn532_packetbuffer[2] = (keyNumber) ? MIFARE_CMD_AUTH_A : MIFARE_CMD_AUTH_B;
+ pn532_packetbuffer[2] = (keyNumber) ? MIFARE_CMD_AUTH_B : MIFARE_CMD_AUTH_A;
pn532_packetbuffer[3] = blockNumber; /* Block Number (1K = 0..63, 4K = 0..255 */
memcpy (pn532_packetbuffer+4, _key, 6);
for (i = 0; i < _uidLen; i++)
Please sign in to comment.
Something went wrong with that request. Please try again.