Fix pn53x_InAutoPoll() return value on user cancelation (true instead of false).
This commit is contained in:
parent
76a1744d37
commit
a55a52e0a9
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue