mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-04-21 14:06:17 +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:
@@ -150,7 +150,7 @@ initiator_thread (void *arg)
|
||||
printf ("=========== INITIATOR %s =========\n", nfc_device_name (device));
|
||||
|
||||
bool res = nfc_initiator_init (device);
|
||||
cut_assert_true (res, cut_message ("Can't initialize NFC device as initiator: %s", nfc_strerror (device)));
|
||||
cut_assert_equal_int (0, res, cut_message ("Can't initialize NFC device as initiator: %s", nfc_strerror (device)));
|
||||
if (!res) { thread_res = -1; return (void*) thread_res; }
|
||||
|
||||
nfc_target nt;
|
||||
|
||||
Reference in New Issue
Block a user