From ffb5f7e3b307269ffed736a06a2a53987db7e227 Mon Sep 17 00:00:00 2001 From: Bert van Hall Date: Thu, 19 Jun 2014 14:35:50 +0200 Subject: 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 --- LUFA/Drivers/USB/Class/Device/HIDClassDevice.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'LUFA') 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(); } -- cgit v1.2.3