Fixed Host mode HID class driver not sending the correct report type when HID_Host_Se...
authorDean Camera <dean@fourwalledcubicle.com>
Tue, 4 May 2010 10:10:41 +0000 (10:10 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Tue, 4 May 2010 10:10:41 +0000 (10:10 +0000)
LUFA/Drivers/USB/Class/Host/HID.c
LUFA/ManPages/ChangeLog.txt

index 5d5d2ef..24dcceb 100644 (file)
@@ -249,7 +249,7 @@ uint8_t HID_Host_SendReportByID(USB_ClassInfo_HID_Host_t* const HIDInterfaceInfo
 #if !defined(HID_HOST_BOOT_PROTOCOL_ONLY)\r
                        .wValue        = ((REPORT_ITEM_TYPE_Out + 1) << 8) | ReportID,\r
 #else\r
 #if !defined(HID_HOST_BOOT_PROTOCOL_ONLY)\r
                        .wValue        = ((REPORT_ITEM_TYPE_Out + 1) << 8) | ReportID,\r
 #else\r
-                       .wValue        = 0,\r
+                       .wValue        = ((REPORT_ITEM_TYPE_Out + 1) << 8),\r
 #endif\r
                        .wIndex        = HIDInterfaceInfo->State.InterfaceNumber,\r
                        .wLength       = ReportSize,\r
 #endif\r
                        .wIndex        = HIDInterfaceInfo->State.InterfaceNumber,\r
                        .wLength       = ReportSize,\r
index c38f9e7..b99faac 100644 (file)
@@ -58,6 +58,8 @@
   *    read (thanks to Andrei Krainev)\r
   *  - Fixed device state not being reset back to the default state if the host sets the address to 0\r
   *  - Fixed Set Configuration requests not being stalled until the host has set the device's address\r
   *    read (thanks to Andrei Krainev)\r
   *  - Fixed device state not being reset back to the default state if the host sets the address to 0\r
   *  - Fixed Set Configuration requests not being stalled until the host has set the device's address\r
+  *  - Fixed Host mode HID class driver not sending the correct report type when HID_Host_SendReportByID() was called and the \r
+  *    HID_HOST_BOOT_PROTOCOL_ONLY compile time option is set\r
   *\r
   *  \section Sec_ChangeLog100219 Version 100219\r
   *\r
   *\r
   *  \section Sec_ChangeLog100219 Version 100219\r
   *\r