pn53x_usb: continue to search a available device on usb errors (ie. Device Busy)
This commit is contained in:
parent
78ce62e7b6
commit
c45d4e685a
1 changed files with 2 additions and 2 deletions
|
@ -280,7 +280,7 @@ pn53x_usb_connect (const nfc_device_desc_t *pndd)
|
||||||
}
|
}
|
||||||
usb_close (data.pudh);
|
usb_close (data.pudh);
|
||||||
// we failed to use the specified device
|
// we failed to use the specified device
|
||||||
return NULL;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
res = usb_claim_interface (data.pudh, 0);
|
res = usb_claim_interface (data.pudh, 0);
|
||||||
|
@ -288,7 +288,7 @@ pn53x_usb_connect (const nfc_device_desc_t *pndd)
|
||||||
DBG ("Can't claim interface (%s)", strerror (-res));
|
DBG ("Can't claim interface (%s)", strerror (-res));
|
||||||
usb_close (data.pudh);
|
usb_close (data.pudh);
|
||||||
// we failed to use the specified device
|
// we failed to use the specified device
|
||||||
return NULL;
|
continue;
|
||||||
}
|
}
|
||||||
data.model = pn53x_usb_get_device_model (dev->descriptor.idVendor, dev->descriptor.idProduct);
|
data.model = pn53x_usb_get_device_model (dev->descriptor.idVendor, dev->descriptor.idProduct);
|
||||||
// Allocate memory for the device info and specification, fill it and return the info
|
// Allocate memory for the device info and specification, fill it and return the info
|
||||||
|
|
Loading…
Reference in a new issue