Fix missing report IDs in feature reports
authorBert van Hall <bert.vanhall@avionic-design.de>
Thu, 19 Jun 2014 12:35:50 +0000 (14:35 +0200)
committerBert van Hall <bert.vanhall@avionic-design.de>
Thu, 19 Jun 2014 12:38:49 +0000 (14:38 +0200)
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>
LUFA/Drivers/USB/Class/Device/HIDClassDevice.c

index e46330f..03a745c 100644 (file)
@@ -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();
                        }