aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA
diff options
context:
space:
mode:
authorBert van Hall <bert.vanhall@avionic-design.de>2014-06-19 14:35:50 +0200
committerBert van Hall <bert.vanhall@avionic-design.de>2014-06-19 14:38:49 +0200
commitffb5f7e3b307269ffed736a06a2a53987db7e227 (patch)
tree554e1abb5e811e3de68773acc3d2c087ea45ec55 /LUFA
parentb8f7dae24ca990ee664fc0e63c8498007d2e9ffb (diff)
downloadlufa-ffb5f7e3b307269ffed736a06a2a53987db7e227.tar.gz
lufa-ffb5f7e3b307269ffed736a06a2a53987db7e227.tar.bz2
lufa-ffb5f7e3b307269ffed736a06a2a53987db7e227.zip
Fix missing report IDs in feature reports
As it is the case for input reports, the ID has to be sent for feature reports when a device has multiple reports implemented. Signed-off-by: Bert van Hall <bert.vanhall@avionic-design.de>
Diffstat (limited to 'LUFA')
-rw-r--r--LUFA/Drivers/USB/Class/Device/HIDClassDevice.c4
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();
}