diff --git a/examples/nfc-list.c b/examples/nfc-list.c index 3e00620..7d9493e 100644 --- a/examples/nfc-list.c +++ b/examples/nfc-list.c @@ -47,7 +47,6 @@ #define MAX_TARGET_COUNT 16 static nfc_device_t* pnd; -static byte_t abtFelica[5] = { 0x00, 0xff, 0xff, 0x00, 0x00 }; int main(int argc, const char* argv[]) { @@ -133,45 +132,54 @@ int main(int argc, const char* argv[]) printf("Connected to NFC reader: %s\n",pnd->acName); + // List ISO14443A targets if (nfc_initiator_list_passive_targets(pnd, NM_ISO14443A_106, anti, MAX_TARGET_COUNT, &szTargetFound )) { size_t n; - printf("%zu ISO14443A passive targets was found:\n", szTargetFound); + printf("%zu ISO14443A passive target(s) was found%s\n", szTargetFound, (szTargetFound==0)?".\n":":"); for(n=0; n0) - { - printf(" INF: "); print_hex(nti.nbi.abtInf,nti.nbi.szInfLen); + // List Felica tags + if (nfc_initiator_list_passive_targets(pnd, NM_FELICA_212, anti, MAX_TARGET_COUNT, &szTargetFound )) { + size_t n; + printf("%zu Felica (212 kbps) passive target(s) was found%s\n", szTargetFound, (szTargetFound==0)?".\n":":"); + for(n=0; n