From 65da34398d8a18db22f211a8b2c614fd70ec1ddb Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Mon, 18 Oct 2010 10:12:24 +0000 Subject: [PATCH] nfc-list: clean up configuration, that now handled by nfc_initiator_list_passive_targets() --- examples/nfc-list.c | 22 ---------------------- 1 file changed, 22 deletions(-) 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