Fix HID class device driver -- if a SetIDle request is issued with the LSB of wValue...
[pub/USBasp.git] / LUFA / Drivers / USB / Class / Host / HIDParser.c
index 5fb29aa..18519a0 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
@@ -324,3 +327,5 @@ void USB_SetHIDReportItemInfo(uint8_t* ReportData, const HID_ReportItem_t* Repor
                BitMask <<= 1;\r
        }\r
 }\r
+\r
+#endif\r