Fixed report data alignment issues in the MouseHostWithParser demo when X and Y movem...
[pub/USBasp.git] / LUFA / Drivers / USB / Class / Host / HIDParser.c
index 18519a0..cee602a 100644 (file)
@@ -113,6 +113,8 @@ uint8_t USB_ProcessHIDReport(const uint8_t* ReportData, uint16_t ReportSize, HID
                                break;\r
                        case (TYPE_GLOBAL | TAG_GLOBAL_REPORTID):\r
                                CurrStateTable->ReportID                    = ReportItemData;\r
+                               BitOffsetIn = 0;\r
+                               BitOffsetOut = 0;\r
                                break;\r
                        case (TYPE_LOCAL | TAG_LOCAL_USAGE):\r
                                if (UsageStackSize == HID_USAGE_STACK_DEPTH)\r