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.
Fork of USBDevice by
Diff: USBHID/USBHID.cpp
- 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;
}
