Fix mask to extract "Error Code" from status byte.

This commit is contained in:
Romuald Conty 2010-07-27 09:29:54 +00:00
parent 9984e1bdcb
commit d63157a41d

View file

@ -81,7 +81,7 @@ bool pn53x_transceive(nfc_device_t* pnd, const byte_t* pbtTx, const size_t szTxL
if (!pnd->pdc->transceive(pnd->nds,pbtTx,szTxLen,pbtRx,pszRxLen)) return false;
printf ("Leaving transceive (bsin = %lu, bsout = %lu)\n", szTxLen, *pszRxLen);
pnd->iErrorCode = pbtRx[0] & 0x2f;
pnd->iErrorCode = pbtRx[0] & 0x3f;
// Make sure there was no failure reported by the PN53X chip (0x00 == OK)
if (pnd->iErrorCode != 0) {