aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2009-09-30 07:58:17 +0000
committerDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2009-09-30 07:58:17 +0000
commit63e0e6ba0430ecde8f4b260d5042cefc0bbcd6f6 (patch)
treea8414460c4839e4743fb548addcdb92d3e21f452
parent67880a3996f88155f8da81c762b91f4ad749af96 (diff)
Fixed issue in the HID Host class driver's HID_Host_SendReportByID() routine using the incorrect mode (control/pipe) to send report to the attached device.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@852 d5102386-fcda-11dd-9fdb-3debd5008f28
-rw-r--r--LUFA/Drivers/USB/Class/Host/HID.c2
-rw-r--r--LUFA/ManPages/ChangeLog.txt2
2 files changed, 3 insertions, 1 deletions
diff --git a/LUFA/Drivers/USB/Class/Host/HID.c b/LUFA/Drivers/USB/Class/Host/HID.c
index a8e761d6..d94c2db4 100644
--- a/LUFA/Drivers/USB/Class/Host/HID.c
+++ b/LUFA/Drivers/USB/Class/Host/HID.c
@@ -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))
return false;
- if (HIDInterfaceInfo->State.DeviceUsesOUTPipe)
+ if (!(HIDInterfaceInfo->State.DeviceUsesOUTPipe))
{
USB_ControlRequest = (USB_Request_Header_t)
{
diff --git a/LUFA/ManPages/ChangeLog.txt b/LUFA/ManPages/ChangeLog.txt
index 7206ab05..f42a60a0 100644
--- a/LUFA/ManPages/ChangeLog.txt
+++ b/LUFA/ManPages/ChangeLog.txt
@@ -19,6 +19,8 @@
* - Fixed PrinterHost demo returning invalid Device ID data when the attached device does not have a
* device ID (thanks to Andrei Krainev)
* - Changed LUFA_VERSION_INTEGER define to use BCD values, to make comparisons eaiser
+ * - Fixed issue in the HID Host class driver's HID_Host_SendReportByID() routine using the incorrect mode (control/pipe)
+ * to send report to the attached device
*
* \section Sec_ChangeLog090924 Version 090924
*