nfc_initiator_select_passive_target() function returns now the selected passive targets count on success.

This commit is contained in:
Audrey Diacre 2011-12-21 11:33:21 +00:00
parent ff066e394d
commit f93bc59504
4 changed files with 24 additions and 21 deletions

View file

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