projects
/
hackover2013-badge-firmware.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added page write
[hackover2013-badge-firmware.git]
/
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
(file)
--- 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;
}
return error;
}
- /* Read the authenti
fi
cation response */
+ /* Read the authentication response */
memset(abtResponse, 0, PN532_RESPONSELEN_INDATAEXCHANGE);
do
{
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 */
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
{
}
else
{
This page took
0.027414 seconds
and
4
git commands to generate.