mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-07-23 04:01:56 +00:00
nfc_list_devices() function returns now the number of devices found.
This commit is contained in:
@@ -26,9 +26,7 @@ abort_test_by_keypress (int sig)
|
||||
void
|
||||
cut_setup (void)
|
||||
{
|
||||
size_t n;
|
||||
|
||||
nfc_list_devices (connstrings, 2, &n);
|
||||
size_t n = nfc_list_devices (connstrings, 2);
|
||||
if (n < 2) {
|
||||
cut_omit ("At least two NFC devices must be plugged-in to run this test");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user