nfc_initiator_select_passive_target() function returns now the selected passive targets count on success.
This commit is contained in:
parent
ff066e394d
commit
f93bc59504
4 changed files with 24 additions and 21 deletions
|
|
@ -35,7 +35,7 @@ main (int argc, const char *argv[])
|
|||
.nmt = NMT_ISO14443A,
|
||||
.nbr = NBR_106,
|
||||
};
|
||||
if (nfc_initiator_select_passive_target (pnd, nmMifare, NULL, 0, &nt) == 0) {
|
||||
if (nfc_initiator_select_passive_target (pnd, nmMifare, NULL, 0, &nt) > 0) {
|
||||
printf ("The following (NFC) ISO14443A tag was found:\n");
|
||||
printf (" ATQA (SENS_RES): ");
|
||||
print_hex (nt.nti.nai.abtAtqa, 2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue