nfc-list: clean up configuration, that now handled by nfc_initiator_list_passive_targets()
This commit is contained in:
parent
7d59b6b1a3
commit
65da34398d
1 changed files with 0 additions and 22 deletions
|
@ -117,28 +117,6 @@ main (int argc, const char *argv[])
|
||||||
}
|
}
|
||||||
nfc_initiator_init (pnd);
|
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);
|
printf ("Connected to NFC device: %s\n", pnd->acName);
|
||||||
|
|
||||||
// List ISO14443A targets
|
// List ISO14443A targets
|
||||||
|
|
Loading…
Add table
Reference in a new issue