check result of nfc_initiator_init() function in examples/ and utils/
This commit is contained in:
parent
331234713d
commit
5a1f0c2115
11 changed files with 45 additions and 11 deletions
|
|
@ -186,7 +186,10 @@ main (int argc, char *argv[])
|
|||
}
|
||||
|
||||
// Initialise NFC device as "initiator"
|
||||
nfc_initiator_init (pnd);
|
||||
if (nfc_initiator_init (pnd) < 0) {
|
||||
nfc_perror (pnd, "nfc_initiator_init");
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
// Configure the CRC
|
||||
if (nfc_device_set_property_bool (pnd, NP_HANDLE_CRC, false) < 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue