mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-07-24 04:31:49 +00:00
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:
@@ -229,7 +229,7 @@ main (int argc, char *argv[])
|
||||
|
||||
printf ("Connected to the NFC reader device: %s\n", pndInitiator->acName);
|
||||
|
||||
if (!nfc_initiator_init (pndInitiator)) {
|
||||
if (nfc_initiator_init (pndInitiator) < 0) {
|
||||
printf ("Error: fail initializing initiator\n");
|
||||
nfc_disconnect (pndInitiator);
|
||||
exit (EXIT_FAILURE);
|
||||
|
||||
Reference in New Issue
Block a user