Fixed issue #139: serial autoprobe now skips invalid devices but checks all ports in the list.

This commit is contained in:
Emanuele Bertoldi 2011-01-14 16:39:02 +00:00
parent 55be1debaf
commit b58816df05

View file

@ -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);
// Check communication using "Diagnose" command, with "Communication test" (0x00)
if (!pn532_uart_check_communication ((nfc_device_spec_t) sp, &bComOk))
return false;
continue;
if (!bComOk)
continue;
uart_close (sp);