Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: GR-PEACH_HVC-P2_sample_client mbed-os-storage-access GR-PEACH_Digital_Signage GR-PEACH_Audio_Playback_Sample ... more
Fork of USBHost by
Diff: USBHost/USBHost.cpp
- Revision:
- 14:80c2d927b9b5
- Parent:
- 13:b58a2204422f
- Child:
- 15:6da3f071ee35
--- a/USBHost/USBHost.cpp Mon Sep 16 15:36:24 2013 +0100
+++ b/USBHost/USBHost.cpp Thu Oct 03 11:39:59 2013 +0000
@@ -852,7 +852,7 @@
pEnumerator->setVidPid( data[8] | (data[9] << 8), data[10] | (data[11] << 8) );
- res = getConfigurationDescriptor(dev, data, 300, &total_conf_descr_length);
+ res = getConfigurationDescriptor(dev, data, sizeof(data), &total_conf_descr_length);
if (res != USB_TYPE_OK) {
usb_mutex.unlock();
return res;
