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: RGA-MJPEG_VideoDemo
Fork of USBHost_custom by
Diff: USBHost/USBHost.cpp
- Revision:
- 16:ab8c9118524e
- Parent:
- 15:6da3f071ee35
- Child:
- 17:c7b1b8451598
--- a/USBHost/USBHost.cpp	Mon Oct 07 09:15:28 2013 +0100
+++ b/USBHost/USBHost.cpp	Wed Oct 09 13:15:21 2013 +0100
@@ -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;
    