nfc-list: remove some useless calls to nfc_configure(), these settings are applied by default.

This commit is contained in:
Romuald Conty 2010-10-08 18:13:18 +00:00
parent aeadaf536c
commit bf1f9c68d3

View file

@ -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");