Fixed issue in the HID Host class driver's HID_Host_SendReportByID() routine using...
authorDean Camera <dean@fourwalledcubicle.com>
Wed, 30 Sep 2009 07:58:17 +0000 (07:58 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Wed, 30 Sep 2009 07:58:17 +0000 (07:58 +0000)
LUFA/Drivers/USB/Class/Host/HID.c
LUFA/ManPages/ChangeLog.txt

index a8e761d..d94c2db 100644 (file)
@@ -213,7 +213,7 @@ uint8_t HID_Host_SendReportByID(USB_ClassInfo_HID_Host_t* const HIDInterfaceInfo
        if ((USB_HostState != HOST_STATE_Configured) || !(HIDInterfaceInfo->State.IsActive))\r
          return false;\r
          \r
        if ((USB_HostState != HOST_STATE_Configured) || !(HIDInterfaceInfo->State.IsActive))\r
          return false;\r
          \r
-       if (HIDInterfaceInfo->State.DeviceUsesOUTPipe)\r
+       if (!(HIDInterfaceInfo->State.DeviceUsesOUTPipe))\r
        {\r
                USB_ControlRequest = (USB_Request_Header_t)\r
                {\r
        {\r
                USB_ControlRequest = (USB_Request_Header_t)\r
                {\r
index 7206ab0..f42a60a 100644 (file)
@@ -19,6 +19,8 @@
   *  - Fixed PrinterHost demo returning invalid Device ID data when the attached device does not have a\r
   *    device ID (thanks to Andrei Krainev)\r
   *  - Changed LUFA_VERSION_INTEGER define to use BCD values, to make comparisons eaiser\r
   *  - Fixed PrinterHost demo returning invalid Device ID data when the attached device does not have a\r
   *    device ID (thanks to Andrei Krainev)\r
   *  - Changed LUFA_VERSION_INTEGER define to use BCD values, to make comparisons eaiser\r
+  *  - Fixed issue in the HID Host class driver's HID_Host_SendReportByID() routine using the incorrect mode (control/pipe)\r
+  *    to send report to the attached device\r
   *\r
   *  \section Sec_ChangeLog090924 Version 090924\r
   *\r
   *\r
   *  \section Sec_ChangeLog090924 Version 090924\r
   *\r