pn53x_initiator_poll_target() function returns now polled targets count on success.
This commit is contained in:
parent
340e80d7a8
commit
b864215d63
4 changed files with 15 additions and 16 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue