From 10f9a3d2b01bdb4056382a3954302c1cf76b0fe0 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Thu, 30 Sep 2010 08:37:46 +0000 Subject: [PATCH] PN531 and PN533 does not support NTM_PICC mode --- libnfc/chips/pn53x.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libnfc/chips/pn53x.c b/libnfc/chips/pn53x.c index 9a4fcc4..43bacb3 100644 --- a/libnfc/chips/pn53x.c +++ b/libnfc/chips/pn53x.c @@ -953,6 +953,11 @@ pn53x_target_init (nfc_device_t * pnd, nfc_target_mode_t tm, byte_t * pbtRx, siz break; case NTM_PICC: + if(pnd->nc != NC_PN532) { + // This mode is not supported by pn531 neither pn533 + pnd->iLastError = DENOTSUP; + return false; + } pn53x_set_parameters(pnd,SYMBOL_PARAM_fISO14443_4_PICC); pn53x_configure(pnd,NDO_EASY_FRAMING,false); break;