diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2014-06-25 20:54:04 +1000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2014-06-25 20:54:04 +1000 |
commit | 281228748829ee674bf9ab394d9f6164c5088cab (patch) | |
tree | 554e1abb5e811e3de68773acc3d2c087ea45ec55 | |
parent | b8f7dae24ca990ee664fc0e63c8498007d2e9ffb (diff) | |
parent | ffb5f7e3b307269ffed736a06a2a53987db7e227 (diff) | |
download | lufa-281228748829ee674bf9ab394d9f6164c5088cab.tar.gz lufa-281228748829ee674bf9ab394d9f6164c5088cab.tar.bz2 lufa-281228748829ee674bf9ab394d9f6164c5088cab.zip |
Merge pull request #28 from The-42/fix-feature-id
Fix missing report IDs for HID device class GetReport request responses (thanks to Bert van Hall).
-rw-r--r-- | LUFA/Drivers/USB/Class/Device/HIDClassDevice.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/LUFA/Drivers/USB/Class/Device/HIDClassDevice.c b/LUFA/Drivers/USB/Class/Device/HIDClassDevice.c index e46330f94..03a745c1a 100644 --- a/LUFA/Drivers/USB/Class/Device/HIDClassDevice.c +++ b/LUFA/Drivers/USB/Class/Device/HIDClassDevice.c @@ -68,6 +68,10 @@ void HID_Device_ProcessControlRequest(USB_ClassInfo_HID_Device_t* const HIDInter Endpoint_SelectEndpoint(ENDPOINT_CONTROLEP); Endpoint_ClearSETUP(); + + if (ReportID) + Endpoint_Write_8(ReportID); + Endpoint_Write_Control_Stream_LE(ReportData, ReportSize); Endpoint_ClearOUT(); } |