diff --git a/Downstream/Src/downstream_hid.c b/Downstream/Src/downstream_hid.c index e9cff89..c490d02 100644 --- a/Downstream/Src/downstream_hid.c +++ b/Downstream/Src/downstream_hid.c @@ -194,6 +194,10 @@ HAL_StatusTypeDef Downstream_HID_Mouse_ParseReportDescriptor(void) } break; } + currentUsageIndex = 0; + xUsageIndex = 0xFF; + yUsageIndex = 0xFF; + wheelUsageIndex = 0xFF; currentReportBitIndex += (currentReportSize * currentReportCount); if (currentReportBitIndex >= (HID_MAX_REPORT_LEN * 8)) {