forked from PAWPAW-Mirror/lib_xua
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.
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user