From d41e7f2ca0751161275d154011e094019c90c79e Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Wed, 13 Oct 2010 22:28:29 +0000 Subject: [PATCH] Hack polling modulations in order to have ISO14443-4 with ATS and ISO14443-3 targets --- libnfc/chips/pn53x.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/libnfc/chips/pn53x.c b/libnfc/chips/pn53x.c index d9c8a91..ee310c7 100644 --- a/libnfc/chips/pn53x.c +++ b/libnfc/chips/pn53x.c @@ -511,10 +511,16 @@ pn53x_initiator_poll_targets (nfc_device_t * pnd, const byte_t btPollNr, const byte_t btPeriod, nfc_target_t * pntTargets, size_t * pszTargetFound) { - const size_t szTargetTypes = szModulations; + size_t szTargetTypes = 0; pn53x_target_type_t apttTargetTypes[32]; - for (size_t n=0; n