nfc_initiator_init returns now error code and nfc_initiator_list_passive_targets returns now the number of targets found or error code.
This commit is contained in:
parent
a615d969fd
commit
98355d36a7
11 changed files with 91 additions and 94 deletions
|
|
@ -81,7 +81,7 @@ main (int argc, const char *argv[])
|
|||
|
||||
signal (SIGINT, stop_dep_communication);
|
||||
|
||||
if (!nfc_initiator_init (pnd)) {
|
||||
if (nfc_initiator_init (pnd) < 0) {
|
||||
nfc_perror(pnd, "nfc_initiator_init");
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue