Commit 09575f96 authored by Dean Camera's avatar Dean Camera
Browse files

Fix accidentally changed code breaking the HID descriptor parser.

parent 046fff2a
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment