Fix pn53x_InAutoPoll() return value on user cancelation (true instead of false).

This commit is contained in:
Romain Tartiere 2011-03-05 01:46:16 +00:00
parent 76a1744d37
commit a55a52e0a9

View file

@ -675,9 +675,9 @@ pn53x_InAutoPoll (nfc_device_t * pnd,
size_t szRx = sizeof(abtRx);
bool res = pn53x_transceive (pnd, abtCmd, szTxInAutoPoll, abtRx, &szRx);
if ((szRx == 0) || (res == false)) {
if (res == false) {
return false;
} else {
} else if (szRx > 0) {
*pszTargetFound = abtRx[0];
if (*pszTargetFound) {
uint8_t ln;