mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-05-29 08:36:15 +00:00
If the current driver name does not match what we are looking for, move to the
next one before retrying.
This commit is contained in:
@@ -99,6 +99,7 @@ nfc_connect (nfc_device_desc_t * pndd)
|
|||||||
while ((ndr = *pndr)) {
|
while ((ndr = *pndr)) {
|
||||||
// Specific device is requested: using device description pndd
|
// Specific device is requested: using device description pndd
|
||||||
if (0 != strcmp (ndr->name, pndd->pcDriver)) {
|
if (0 != strcmp (ndr->name, pndd->pcDriver)) {
|
||||||
|
pndr++;
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
pnd = ndr->connect (pndd);
|
pnd = ndr->connect (pndd);
|
||||||
|
|||||||
Reference in New Issue
Block a user