X-Git-Url: http://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/218f2b0a7b5820a21365c9689010d5fffb329549..a98cb020aa3167f391b0d27d9f3d05cb694e00b5:/drivers/sensors/pn532/helpers/pn532_mifare_classic.c diff --git a/drivers/sensors/pn532/helpers/pn532_mifare_classic.c b/drivers/sensors/pn532/helpers/pn532_mifare_classic.c index b30156a..ece672e 100644 --- a/drivers/sensors/pn532/helpers/pn532_mifare_classic.c +++ b/drivers/sensors/pn532/helpers/pn532_mifare_classic.c @@ -345,7 +345,7 @@ pn532_error_t pn532_mifareclassic_AuthenticateBlock (byte_t * pbtCUID, size_t sz return error; } - /* Read the authentification response */ + /* Read the authentication response */ memset(abtResponse, 0, PN532_RESPONSELEN_INDATAEXCHANGE); do { @@ -435,8 +435,8 @@ pn532_error_t pn532_mifareclassic_ReadDataBlock (uint8_t uiBlockNumber, byte_t * if (szLen == 26) { /* Copy the 16 data bytes to the output buffer */ - /* Block content starts at byte 8 of a valid response */ - memcpy (pbtData, abtResponse+7, 16); + /* Block content starts at byte 9 of a valid response */ + memcpy (pbtData, abtResponse+8, 16); } else {