Skip to content

Fix USB Host failures #343

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libraries/USBHost/src/hid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ uint32_t HID::GetReportDescr(uint32_t ep, USBReadParser *parser) {
}
*/
uint32_t HID::GetReportDescr(uint32_t wIndex, USBReadParser *parser) {
const uint8_t constBufLen = 64;
const uint8_t constBufLen = 128;
uint8_t buf[constBufLen];

uint8_t rcode = pUsb->ctrlReq(bAddress, 0x00, bmREQ_HIDREPORT, USB_REQUEST_GET_DESCRIPTOR, 0x00,
Expand Down
4 changes: 0 additions & 4 deletions libraries/USBHost/src/hidboot.h
Original file line number Diff line number Diff line change
Expand Up @@ -311,10 +311,6 @@ uint32_t HIDBoot<BOOT_PROTOCOL>::Init(uint32_t parent, uint32_t port, uint32_t l
}


// Reset
UHD_BusReset();
while( Is_uhd_starting_reset() ) {}

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

Expand Down