nfc_initiator_poll_target() function returns now libnfc error code.

This commit is contained in:
Audrey Diacre 2011-12-20 15:46:35 +00:00
parent 42276ccd14
commit 0f5cc5683d
6 changed files with 22 additions and 20 deletions

View file

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