Dwayne Dilbeck / USBDevice

Dependents:   HW4_AudioControl

Fork of USBDevice by mbed official

Revision:
15:2b2a28dc6ed5
Parent:
14:00cd29199e0e
Child:
17:cf5d77f1026a
--- a/USBHID/USBHID.cpp	Tue Jul 30 22:34:54 2013 +0000
+++ b/USBHID/USBHID.cpp	Wed Jul 31 22:18:45 2013 +0000
@@ -295,7 +295,7 @@
     {
         
         HID_REPORT *targetPtr=NULL;
-        printf("ReportID: %x\r\n", transfer->setup.wValue & 0xff );
+//        printf("ReportID: %x\r\n", transfer->setup.wValue & 0xff );
         switch (transfer->setup.bRequest)
         {
              case SET_REPORT:
@@ -445,8 +445,9 @@
     uint32_t bytesRead = 0;
     bool result;
     //TODO: Is there a buffer over run issue here? 
+    //read to Buffer and copy just the report data to the HID_REPORT.
     result = endpointReadResult(EPINT_OUT, outputReport.data, &bytesRead);
-    outputReport.length = bytesRead;
+//    outputReport.length = bytesRead;
     (*callbackSetOutputReport)(&outputReport);
     return result;
 }