diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-07-28 15:14:54 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-07-28 15:14:54 +0000 |
commit | 7f3f39b5750b9ac877798f41efcf82d931d657f8 (patch) | |
tree | 8367df3c332b382b5a2122dccabdbaf2d80a1cc1 /LUFA/Drivers/USB | |
parent | 3472af91a5c167cf243335fa32b5284a4a796e39 (diff) | |
download | lufa-7f3f39b5750b9ac877798f41efcf82d931d657f8.tar.gz lufa-7f3f39b5750b9ac877798f41efcf82d931d657f8.tar.bz2 lufa-7f3f39b5750b9ac877798f41efcf82d931d657f8.zip |
Fixed report data alignment issues in the MouseHostWithParser demo when X and Y movement data size is not a multiple of 8 bits.
Fixed HID Report Descriptor Parser not correctly resetting internal states when a REPORT ID element is encountered.
Diffstat (limited to 'LUFA/Drivers/USB')
-rw-r--r-- | LUFA/Drivers/USB/Class/Host/HIDParser.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/LUFA/Drivers/USB/Class/Host/HIDParser.c b/LUFA/Drivers/USB/Class/Host/HIDParser.c index 18519a018..cee602a33 100644 --- a/LUFA/Drivers/USB/Class/Host/HIDParser.c +++ b/LUFA/Drivers/USB/Class/Host/HIDParser.c @@ -113,6 +113,8 @@ uint8_t USB_ProcessHIDReport(const uint8_t* ReportData, uint16_t ReportSize, HID break;
case (TYPE_GLOBAL | TAG_GLOBAL_REPORTID):
CurrStateTable->ReportID = ReportItemData;
+ BitOffsetIn = 0;
+ BitOffsetOut = 0;
break;
case (TYPE_LOCAL | TAG_LOCAL_USAGE):
if (UsageStackSize == HID_USAGE_STACK_DEPTH)
|