Improved HID report parser compatibility

USG_1.0
Robert Fisk 9 years ago
parent 650d10f22c
commit a64b89175e

@ -194,6 +194,10 @@ HAL_StatusTypeDef Downstream_HID_Mouse_ParseReportDescriptor(void)
} }
break; break;
} }
currentUsageIndex = 0;
xUsageIndex = 0xFF;
yUsageIndex = 0xFF;
wheelUsageIndex = 0xFF;
currentReportBitIndex += (currentReportSize * currentReportCount); currentReportBitIndex += (currentReportSize * currentReportCount);
if (currentReportBitIndex >= (HID_MAX_REPORT_LEN * 8)) if (currentReportBitIndex >= (HID_MAX_REPORT_LEN * 8))
{ {

Loading…
Cancel
Save