reverse revision 230 - calling connect(NULL) is correct behaviour (selects 1st available device)
This commit is contained in:
parent
5b767ec91e
commit
b9c7bb89a7
1 changed files with 3 additions and 4 deletions
|
@ -124,10 +124,9 @@ nfc_device_t* nfc_connect(nfc_device_desc_t* pndd)
|
||||||
DBG("Autodetecting available devices using %s driver.", drivers_callbacks_list[uiDriver].acDriver);
|
DBG("Autodetecting available devices using %s driver.", drivers_callbacks_list[uiDriver].acDriver);
|
||||||
pndd = drivers_callbacks_list[uiDriver].pick_device ();
|
pndd = drivers_callbacks_list[uiDriver].pick_device ();
|
||||||
}
|
}
|
||||||
if (pndd != NULL) {
|
// auto-connect with NULL descriptor is allowed (NULL means "first available")
|
||||||
DBG("Auto-connecting to %s using %s driver", pndd->acDevice, drivers_callbacks_list[uiDriver].acDriver);
|
DBG("Auto-connecting to %s using %s driver", pndd->acDevice, drivers_callbacks_list[uiDriver].acDriver);
|
||||||
pnd = drivers_callbacks_list[uiDriver].connect(pndd);
|
pnd = drivers_callbacks_list[uiDriver].connect(pndd);
|
||||||
}
|
|
||||||
if(pnd == NULL)
|
if(pnd == NULL)
|
||||||
{
|
{
|
||||||
DBG("%s Not found",drivers_callbacks_list[uiDriver].acDriver);
|
DBG("%s Not found",drivers_callbacks_list[uiDriver].acDriver);
|
||||||
|
|
Loading…
Add table
Reference in a new issue