From b1521a3bb183bf4be14c9ff6dc2cd53db00077c5 Mon Sep 17 00:00:00 2001 From: Romain Tartiere Date: Fri, 4 Mar 2011 11:18:47 +0000 Subject: [PATCH] If the current driver name does not match what we are looking for, move to the next one before retrying. --- libnfc/nfc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libnfc/nfc.c b/libnfc/nfc.c index ebc891a..e41ee85 100644 --- a/libnfc/nfc.c +++ b/libnfc/nfc.c @@ -99,6 +99,7 @@ nfc_connect (nfc_device_desc_t * pndd) while ((ndr = *pndr)) { // Specific device is requested: using device description pndd if (0 != strcmp (ndr->name, pndd->pcDriver)) { + pndr++; continue; } else { pnd = ndr->connect (pndd);