From b58816df057d0aab19859277fcd06c806b172df0 Mon Sep 17 00:00:00 2001 From: Emanuele Bertoldi Date: Fri, 14 Jan 2011 16:39:02 +0000 Subject: [PATCH] Fixed issue #139: serial autoprobe now skips invalid devices but checks all ports in the list. --- libnfc/drivers/pn532_uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnfc/drivers/pn532_uart.c b/libnfc/drivers/pn532_uart.c index 30f913e..4e320f1 100644 --- a/libnfc/drivers/pn532_uart.c +++ b/libnfc/drivers/pn532_uart.c @@ -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);