From bf1f9c68d372d90a8c0266807195037b777c78ad Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Fri, 8 Oct 2010 18:13:18 +0000 Subject: [PATCH] nfc-list: remove some useless calls to nfc_configure(), these settings are applied by default. --- examples/nfc-list.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/examples/nfc-list.c b/examples/nfc-list.c index 3c696be..e20c16c 100644 --- a/examples/nfc-list.c +++ b/examples/nfc-list.c @@ -114,7 +114,7 @@ main (int argc, const char *argv[]) if (pnd == NULL) { ERR ("%s", "Unable to connect to NFC device."); - return 1; + return EXIT_FAILURE; } nfc_initiator_init (pnd); @@ -128,15 +128,6 @@ main (int argc, const char *argv[]) nfc_perror (pnd, "nfc_configure"); exit (EXIT_FAILURE); } - // Configure the CRC and Parity settings - if (!nfc_configure (pnd, NDO_HANDLE_CRC, true)) { - nfc_perror (pnd, "nfc_configure"); - exit (EXIT_FAILURE); - } - if (!nfc_configure (pnd, NDO_HANDLE_PARITY, true)) { - 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");