diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-07-15 01:42:36 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-07-15 01:42:36 +0000 |
commit | 7cef08e10e0e7ef770c52dc180b25fdfa5cf758d (patch) | |
tree | a8a217392cd05f447fe0b684458e3e4a82bd3f7a /LUFA/Drivers/USB/Class | |
parent | d83cc9ac8049f651637dc2d9b8632f3c208bbdf6 (diff) | |
download | lufa-7cef08e10e0e7ef770c52dc180b25fdfa5cf758d.tar.gz lufa-7cef08e10e0e7ef770c52dc180b25fdfa5cf758d.tar.bz2 lufa-7cef08e10e0e7ef770c52dc180b25fdfa5cf758d.zip |
Fixed HID device class driver still using PrevReportINBuffer for GetReport control requests even when it has been set to NULL by the user application (thanks to Axel Rohde).
Diffstat (limited to 'LUFA/Drivers/USB/Class')
-rw-r--r-- | LUFA/Drivers/USB/Class/Device/HID.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LUFA/Drivers/USB/Class/Device/HID.c b/LUFA/Drivers/USB/Class/Device/HID.c index bc796464d..203023142 100644 --- a/LUFA/Drivers/USB/Class/Device/HID.c +++ b/LUFA/Drivers/USB/Class/Device/HID.c @@ -63,7 +63,7 @@ void HID_Device_ProcessControlRequest(USB_ClassInfo_HID_Device_t* const HIDInter memcpy(HIDInterfaceInfo->Config.PrevReportINBuffer, ReportData, HIDInterfaceInfo->Config.PrevReportINBufferSize); Endpoint_SelectEndpoint(ENDPOINT_CONTROLEP); - Endpoint_Write_Control_Stream_LE(HIDInterfaceInfo->Config.PrevReportINBuffer, ReportSize); + Endpoint_Write_Control_Stream_LE(ReportData, ReportSize); Endpoint_ClearOUT(); } |