From 88a57a50b3ebaa7bb773071b4e1a141de53fc7f4 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Wed, 3 Oct 2012 16:21:02 +0000 Subject: [PATCH] Fix error code when no reply is not ISO14443B2CT compliant --- libnfc/chips/pn53x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnfc/chips/pn53x.c b/libnfc/chips/pn53x.c index 51befdd..976bc7c 100644 --- a/libnfc/chips/pn53x.c +++ b/libnfc/chips/pn53x.c @@ -1088,7 +1088,7 @@ pn53x_initiator_select_passive_target_ext(struct nfc_device *pnd, } if (nm.nmt == NMT_ISO14443B2CT) { if (szTargetsData != 2) - return NFC_ECHIP; // FIXME: It should not return a NFC_ECHIP here! + return 0; // Target is not ISO14443B2CT uint8_t abtRead[] = { 0xC4 }; // Reading UID_MSB (Read address 4) if ((res = pn53x_initiator_transceive_bytes(pnd, abtRead, sizeof(abtRead), abtTargetsData + 4, sizeof(abtTargetsData) - 4, timeout) < 0)) { return res;