diff --git a/examples/mifare.c b/examples/mifare.c index 0645429..cd8d811 100644 --- a/examples/mifare.c +++ b/examples/mifare.c @@ -69,7 +69,7 @@ bool nfc_initiator_mifare_cmd(const nfc_device_t* pnd, const mifare_cmd mc, cons if (!nfc_initiator_transceive_dep_bytes(pnd,abtCmd,2+szParamLen,abtRx,&szRxLen)) return false; // When we have executed a read command, copy the received bytes into the param - if (mc == MC_READ && szRxLen == 17) memcpy(pmp->mpd.abtData,abtRx+1,16); + if (mc == MC_READ && szRxLen == 16) memcpy(pmp->mpd.abtData,abtRx,16); // Command succesfully executed return true;