Fixed issue #139: serial autoprobe now skips invalid devices but checks all ports in the list.
This commit is contained in:
parent
55be1debaf
commit
b58816df05
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ pn532_uart_list_devices (nfc_device_desc_t pnddDevices[], size_t szDevices, size
|
||||||
pn532_uart_wakeup ((nfc_device_spec_t) sp);
|
pn532_uart_wakeup ((nfc_device_spec_t) sp);
|
||||||
// Check communication using "Diagnose" command, with "Communication test" (0x00)
|
// Check communication using "Diagnose" command, with "Communication test" (0x00)
|
||||||
if (!pn532_uart_check_communication ((nfc_device_spec_t) sp, &bComOk))
|
if (!pn532_uart_check_communication ((nfc_device_spec_t) sp, &bComOk))
|
||||||
return false;
|
continue;
|
||||||
if (!bComOk)
|
if (!bComOk)
|
||||||
continue;
|
continue;
|
||||||
uart_close (sp);
|
uart_close (sp);
|
||||||
|
|
Loading…
Add table
Reference in a new issue