From 340e80d7a8fe6df8e3a86f0a4e68f72ddbba0c9c Mon Sep 17 00:00:00 2001 From: Audrey Diacre Date: Wed, 21 Dec 2011 11:52:02 +0000 Subject: [PATCH] pn53x_initiator_select_passive_target_ext() function now does not return error when there is no target. --- libnfc/chips/pn53x.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libnfc/chips/pn53x.c b/libnfc/chips/pn53x.c index 233ca01..c80f67a 100644 --- a/libnfc/chips/pn53x.c +++ b/libnfc/chips/pn53x.c @@ -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;