mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Fixed problem with IOGEAR GBU521
This commit is contained in:
parent
40b0436400
commit
e1e159b560
1 changed files with 12 additions and 2 deletions
14
BTD.cpp
14
BTD.cpp
|
@ -195,8 +195,18 @@ uint8_t BTD::Init(uint8_t parent, uint8_t port, bool lowspeed) {
|
|||
break;
|
||||
}
|
||||
|
||||
if (bNumEP < BTD_MAX_ENDPOINTS)
|
||||
goto FailUnknownDevice;
|
||||
if (bNumEP < BTD_MAX_ENDPOINTS) {
|
||||
for (uint8_t i = 0; i < num_of_conf; i++) {
|
||||
ConfigDescParser<USB_CLASS_VENDOR_SPECIFIC, WI_SUBCLASS_RF, WI_PROTOCOL_BT, CP_MASK_COMPARE_ALL> confDescrParser(this); // Needed for the IOGEAR GBU521
|
||||
rcode = pUsb->getConfDescr(bAddress, 0, i, &confDescrParser);
|
||||
if (rcode)
|
||||
goto FailGetConfDescr;
|
||||
if (bNumEP >= BTD_MAX_ENDPOINTS) // All endpoints extracted
|
||||
break;
|
||||
}
|
||||
if (bNumEP < BTD_MAX_ENDPOINTS)
|
||||
goto FailUnknownDevice;
|
||||
}
|
||||
|
||||
// Assign epInfo to epinfo pointer - this time all 3 endpoins
|
||||
rcode = pUsb->setEpInfoEntry(bAddress, bNumEP, epInfo);
|
||||
|
|
Loading…
Reference in a new issue