diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-10-05 05:20:30 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-10-05 05:20:30 +0000 |
commit | 09575f9607e12ddf7284f6c8974a332a88d4ed3b (patch) | |
tree | 06652415ac68f1bc23c4677a119890fc3b3ef41a /LUFA/Drivers/USB/Class | |
parent | 046fff2aff485c550e55125bb059e001e39a6730 (diff) | |
download | lufa-09575f9607e12ddf7284f6c8974a332a88d4ed3b.tar.gz lufa-09575f9607e12ddf7284f6c8974a332a88d4ed3b.tar.bz2 lufa-09575f9607e12ddf7284f6c8974a332a88d4ed3b.zip |
Fix accidentally changed code breaking the HID descriptor parser.
Diffstat (limited to 'LUFA/Drivers/USB/Class')
-rw-r--r-- | LUFA/Drivers/USB/Class/Host/HIDParser.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/LUFA/Drivers/USB/Class/Host/HIDParser.c b/LUFA/Drivers/USB/Class/Host/HIDParser.c index 6b370af30..4d433e56e 100644 --- a/LUFA/Drivers/USB/Class/Host/HIDParser.c +++ b/LUFA/Drivers/USB/Class/Host/HIDParser.c @@ -216,8 +216,7 @@ uint8_t USB_ProcessHIDReport(const uint8_t* ReportData, uint16_t ReportSize, HID case (TYPE_MAIN | TAG_MAIN_INPUT):
case (TYPE_MAIN | TAG_MAIN_OUTPUT):
case (TYPE_MAIN | TAG_MAIN_FEATURE):
- uint8_t Count = CurrStateTable->ReportCount;
- for (uint8_t ReportItemNum = 0; ReportItemNum < Count; ReportItemNum++)
+ for (uint8_t ReportItemNum = 0; ReportItemNum < CurrStateTable->ReportCount; ReportItemNum++)
{
HID_ReportItem_t NewReportItem;
|