nfc_target_init() function returns now 0 on succes and libnfc error code on failure.
This commit is contained in:
parent
145cc4b2ad
commit
ba2a7cfe2e
14 changed files with 36 additions and 36 deletions
|
|
@ -155,7 +155,7 @@ main (int argc, char *argv[])
|
|||
},
|
||||
},
|
||||
};
|
||||
if (!nfc_target_init (pnd, &nt, abtRecv, &szRecvBits)) {
|
||||
if (nfc_target_init (pnd, &nt, abtRecv, &szRecvBits) < 0) {
|
||||
nfc_perror (pnd, "nfc_target_init");
|
||||
ERR ("Could not come out of auto-emulation, no command was received");
|
||||
goto error;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue