pn53x_initiator_poll_target() function returns now polled targets count on success.

This commit is contained in:
Audrey Diacre 2011-12-22 11:16:27 +00:00
parent 340e80d7a8
commit b864215d63
4 changed files with 15 additions and 16 deletions

View file

@ -109,7 +109,7 @@ main (int argc, const char *argv[])
exit (EXIT_FAILURE);
}
if (res == 0) {
if (res > 0) {
print_nfc_target ( nt, verbose );
} else {
printf ("No target found.\n");