Fix mask to extract "Error Code" from status byte.
This commit is contained in:
parent
9984e1bdcb
commit
d63157a41d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
if (!pnd->pdc->transceive(pnd->nds,pbtTx,szTxLen,pbtRx,pszRxLen)) return false;
|
||||||
printf ("Leaving transceive (bsin = %lu, bsout = %lu)\n", szTxLen, *pszRxLen);
|
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)
|
// Make sure there was no failure reported by the PN53X chip (0x00 == OK)
|
||||||
if (pnd->iErrorCode != 0) {
|
if (pnd->iErrorCode != 0) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue