pn53x_initiator_select_passive_target_ext() function now does not return error when there is no target.
This commit is contained in:
parent
f93bc59504
commit
340e80d7a8
1 changed files with 1 additions and 5 deletions
|
@ -989,13 +989,9 @@ pn53x_initiator_select_passive_target_ext (struct nfc_device *pnd,
|
|||
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;
|
||||
|
||||
// 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
|
||||
if (pnt) {
|
||||
pnt->nm = nm;
|
||||
|
|
Loading…
Reference in a new issue