diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-02-14 22:13:11 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-02-14 22:13:11 +0000 |
commit | 67cb070810bd3122491fb6c1c1bf921bf89bde31 (patch) | |
tree | 444651e0826676fa6c3005e85916dc8b13b5a113 /LUFA/Drivers/USB | |
parent | de0ccb3d0905390f70f6c326d31222069c775225 (diff) | |
download | lufa-67cb070810bd3122491fb6c1c1bf921bf89bde31.tar.gz lufa-67cb070810bd3122491fb6c1c1bf921bf89bde31.tar.bz2 lufa-67cb070810bd3122491fb6c1c1bf921bf89bde31.zip |
Fix HID Host Class driver sending incorrect ReportType values to the device when issuing requests via the control pipe.
Diffstat (limited to 'LUFA/Drivers/USB')
-rw-r--r-- | LUFA/Drivers/USB/Class/Host/HID.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/LUFA/Drivers/USB/Class/Host/HID.c b/LUFA/Drivers/USB/Class/Host/HID.c index 1e1dbcff6..b95f73c73 100644 --- a/LUFA/Drivers/USB/Class/Host/HID.c +++ b/LUFA/Drivers/USB/Class/Host/HID.c @@ -159,7 +159,7 @@ uint8_t HID_Host_ReceiveReportByID(USB_ClassInfo_HID_Host_t* const HIDInterfaceI {
.bmRequestType = (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE),
.bRequest = REQ_SetReport,
- .wValue = (REPORT_ITEM_TYPE_In << 8) | ReportID,
+ .wValue = ((REPORT_ITEM_TYPE_In + 1) << 8) | ReportID,
.wIndex = HIDInterfaceInfo->State.InterfaceNumber,
.wLength = USB_GetHIDReportSize(HIDInterfaceInfo->Config.HIDParserData, ReportID, REPORT_ITEM_TYPE_In),
};
@@ -246,7 +246,7 @@ uint8_t HID_Host_SendReportByID(USB_ClassInfo_HID_Host_t* const HIDInterfaceInfo .bmRequestType = (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE),
.bRequest = REQ_SetReport,
#if !defined(HID_HOST_BOOT_PROTOCOL_ONLY)
- .wValue = (REPORT_ITEM_TYPE_Out << 8) | ReportID,
+ .wValue = ((REPORT_ITEM_TYPE_Out + 1) << 8) | ReportID,
#else
.wValue = 0,
#endif
|