diff --git a/examples/nfc-list.c b/examples/nfc-list.c index 54ee804..993780a 100644 --- a/examples/nfc-list.c +++ b/examples/nfc-list.c @@ -117,28 +117,6 @@ main (int argc, const char *argv[]) } nfc_initiator_init (pnd); - // TODO move these conf in nfc_initiator_list_passive_targets() (without them it will not work correctly) - // Drop the field for a while - if (!nfc_configure (pnd, NDO_ACTIVATE_FIELD, false)) { - nfc_perror (pnd, "nfc_configure"); - exit (EXIT_FAILURE); - } - // Let the reader only try once to find a tag - if (!nfc_configure (pnd, NDO_INFINITE_SELECT, false)) { - nfc_perror (pnd, "nfc_configure"); - exit (EXIT_FAILURE); - } - // Enable field so more power consuming cards can power themselves up - if (!nfc_configure (pnd, NDO_ACTIVATE_FIELD, true)) { - nfc_perror (pnd, "nfc_configure"); - exit (EXIT_FAILURE); - } - - if (!nfc_configure (pnd, NDO_AUTO_ISO14443_4, true)) { - nfc_perror (pnd, "nfc_configure"); - exit (EXIT_FAILURE); - } - printf ("Connected to NFC device: %s\n", pnd->acName); // List ISO14443A targets