mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-02-27 20:26:37 +00:00
nfc-list: remove some useless calls to nfc_configure(), these settings are applied by default.
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user