Skip to content

Commit 5e6e6d1

Browse files
gdsportssandeepmistry
gdsports
authored andcommitted
Fix USB Host failures
#342
1 parent 35cae15 commit 5e6e6d1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libraries/USBHost/src/hid.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ uint32_t HID::GetReportDescr(uint32_t ep, USBReadParser *parser) {
3232
}
3333
*/
3434
uint32_t HID::GetReportDescr(uint32_t wIndex, USBReadParser *parser) {
35-
const uint8_t constBufLen = 64;
35+
const uint8_t constBufLen = 128;
3636
uint8_t buf[constBufLen];
3737

3838
uint8_t rcode = pUsb->ctrlReq(bAddress, 0x00, bmREQ_HIDREPORT, USB_REQUEST_GET_DESCRIPTOR, 0x00,

libraries/USBHost/src/hidboot.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,8 @@ uint32_t HIDBoot<BOOT_PROTOCOL>::Init(uint32_t parent, uint32_t port, uint32_t l
312312

313313

314314
// Reset
315-
UHD_BusReset();
316-
while( Is_uhd_starting_reset() ) {}
315+
//UHD_BusReset();
316+
//while( Is_uhd_starting_reset() ) {}
317317

318318
// Restore p->epinfo
319319
p->epinfo = oldep_ptr;

0 commit comments

Comments
 (0)