mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-07-26 05:31:52 +00:00
check result of nfc_initiator_init() function in examples/ and utils/
This commit is contained in:
@@ -130,7 +130,10 @@ main (int argc, const char *argv[])
|
||||
ERR ("%s", "Unable to connect to NFC device.");
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
nfc_initiator_init (pnd);
|
||||
if (nfc_initiator_init (pnd) < 0) {
|
||||
nfc_perror (pnd, "nfc_initiator_init");
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
printf ("Connected to NFC device: %s\n", nfc_device_get_name (pnd));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user