2018.07.26

Dependencies:   FATFileSystem2 mbed-rtos

Fork of USBHost by mbed official

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;