Fix build error in TestApp demo caused by previous commit.
[pub/USBasp.git] / LUFA / Drivers / USB / Class / Host / HIDParser.c
index 5fb29aa..cee602a 100644 (file)
@@ -28,6 +28,9 @@
   this software.\r
 */\r
 \r
+#include "../../HighLevel/USBMode.h"\r
+#if defined(USB_CAN_BE_HOST)\r
+\r
 #include "HIDParser.h"\r
 \r
 uint8_t USB_ProcessHIDReport(const uint8_t* ReportData, uint16_t ReportSize, HID_ReportInfo_t* const ParserData)\r
@@ -110,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
@@ -324,3 +329,5 @@ void USB_SetHIDReportItemInfo(uint8_t* ReportData, const HID_ReportItem_t* Repor
                BitMask <<= 1;\r
        }\r
 }\r
+\r
+#endif\r