aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/Class/Common
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2018-06-17 15:39:20 +1000
committerDean Camera <dean@fourwalledcubicle.com>2018-06-17 15:39:20 +1000
commit6447bda0efad694b06b18c4cf9182482be427ef8 (patch)
tree3d886963344dce1abeda6591c9e93539ff6a32f2 /LUFA/Drivers/USB/Class/Common
parent16f4492eb4783f3821155d87907ad0db7be9cc90 (diff)
downloadlufa-6447bda0efad694b06b18c4cf9182482be427ef8.tar.gz
lufa-6447bda0efad694b06b18c4cf9182482be427ef8.tar.bz2
lufa-6447bda0efad694b06b18c4cf9182482be427ef8.zip
Fixed HID report parser corruption when parsing PUSH and POP report item elements.
Diffstat (limited to 'LUFA/Drivers/USB/Class/Common')
-rw-r--r--LUFA/Drivers/USB/Class/Common/HIDParser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/LUFA/Drivers/USB/Class/Common/HIDParser.c b/LUFA/Drivers/USB/Class/Common/HIDParser.c
index 04fd7609e..87eaf7c67 100644
--- a/LUFA/Drivers/USB/Class/Common/HIDParser.c
+++ b/LUFA/Drivers/USB/Class/Common/HIDParser.c
@@ -92,7 +92,7 @@ uint8_t USB_ProcessHIDReport(const uint8_t* ReportData,
memcpy((CurrStateTable + 1),
CurrStateTable,
- sizeof(HID_ReportItem_t));
+ sizeof(HID_StateTable_t));
CurrStateTable++;
break;