From a4041389039fb3bc9a739679c3e49f71a66589da Mon Sep 17 00:00:00 2001 From: Angel Cascarino Date: Tue, 11 Jan 2022 16:06:11 +0000 Subject: [PATCH] Removed "reset" ability of UpdateReportPeriod In the event where an invalid reportDuration is supplied, previously HidUpdateReportPeriod would reset the period for the specified ID to ENDPOINT_INT_INTERVAL_IN_HID * MS_IN_TICKS. As the default period is now application-specific, hid.xc cannot know what the appropriate value is, and so this has been removed. --- lib_xua/src/hid/hid.xc | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib_xua/src/hid/hid.xc b/lib_xua/src/hid/hid.xc index 4cf860e5..015d94ec 100644 --- a/lib_xua/src/hid/hid.xc +++ b/lib_xua/src/hid/hid.xc @@ -151,8 +151,6 @@ static void HidUpdateReportPeriod( unsigned reportId, unsigned reportDuration ) unsigned nextReportTime = HidCalcNewReportTime( currentPeriod, reportTime, reportToSetIdleInterval, reportDuration * MS_IN_TICKS ); hidSetNextReportTime( reportId, nextReportTime ); currentPeriod = reportDuration * MS_IN_TICKS; - } else { - currentPeriod = ENDPOINT_INT_INTERVAL_IN_HID * MS_IN_TICKS * HID_REPORT_COUNT; } hidSetReportPeriod( reportId, currentPeriod );