USBHost library

Dependencies:   FATFileSystem mbed-rtos

Fork of USBHost by mbed official

Files at this revision

API Documentation at this revision

Comitter:
mazgch
Date:
Thu Oct 03 11:39:59 2013 +0000
Parent:
13:b58a2204422f
Child:
15:6da3f071ee35
Commit message:
make buffer big enough

Changed in this revision

USBHost/USBHost.cpp Show annotated file Show diff for this revision Revisions of this file
USBHost/USBHost.h Show annotated file Show diff for this revision Revisions of this file
--- 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;
--- a/USBHost/USBHost.h	Mon Sep 16 15:36:24 2013 +0100
+++ b/USBHost/USBHost.h	Thu Oct 03 11:39:59 2013 +0000
@@ -272,7 +272,7 @@
     Mutex td_mutex;
     
     // buffer for conf descriptor
-    uint8_t data[300];
+    uint8_t data[415];
     
     /**
     * Add a transfer on the TD linked list associated to an ED