nfc_initiator_poll_target() function returns now libnfc error code.
This commit is contained in:
parent
42276ccd14
commit
0f5cc5683d
6 changed files with 22 additions and 20 deletions
|
|
@ -90,7 +90,7 @@ main (int argc, const char *argv[])
|
|||
const size_t szModulations = 5;
|
||||
|
||||
nfc_target nt;
|
||||
bool res;
|
||||
int res = 0;
|
||||
|
||||
pnd = nfc_connect (NULL);
|
||||
|
||||
|
|
@ -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