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
|
|
@ -146,7 +146,7 @@ main (int argc, char *argv[])
|
|||
},
|
||||
};
|
||||
|
||||
if (!nfc_target_init (pndTag, &nt, abtReaderRx, &szReaderRxBits)) {
|
||||
if (nfc_target_init (pndTag, &nt, abtReaderRx, &szReaderRxBits) < 0) {
|
||||
ERR ("%s", "Initialization of NFC emulator failed");
|
||||
nfc_disconnect (pndTag);
|
||||
return EXIT_FAILURE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue