mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-17 13:03:48 +00:00
pn53x_initiator_select_passive_target_ext() function now does not return error when there is no target.
This commit is contained in:
@@ -989,13 +989,9 @@ pn53x_initiator_select_passive_target_ext (struct nfc_device *pnd,
|
|||||||
return pnd->last_error;
|
return pnd->last_error;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((res = pn53x_InListPassiveTarget (pnd, pm, 1, pbtInitData, szInitData, abtTargetsData, &szTargetsData, timeout)) < 0)
|
if ((res = pn53x_InListPassiveTarget (pnd, pm, 1, pbtInitData, szInitData, abtTargetsData, &szTargetsData, timeout)) <= 0)
|
||||||
return res;
|
return res;
|
||||||
|
|
||||||
// Make sure one tag has been found, the PN53X returns 0x00 if none was available
|
|
||||||
if (res == 0)
|
|
||||||
return NFC_ECHIP;
|
|
||||||
|
|
||||||
// Is a tag info struct available
|
// Is a tag info struct available
|
||||||
if (pnt) {
|
if (pnt) {
|
||||||
pnt->nm = nm;
|
pnt->nm = nm;
|
||||||
|
|||||||
Reference in New Issue
Block a user