pn53x_usb: continue to search a available device on usb errors (ie. Device Busy)

This commit is contained in:
Romuald Conty 2011-05-25 10:15:18 +00:00
parent 78ce62e7b6
commit c45d4e685a

View file

@ -280,7 +280,7 @@ pn53x_usb_connect (const nfc_device_desc_t *pndd)
}
usb_close (data.pudh);
// we failed to use the specified device
return NULL;
continue;
}
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));
usb_close (data.pudh);
// we failed to use the specified device
return NULL;
continue;
}
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