Fix possible bug with SysTimer

Ensure the SysTimer isn't added to the timer list twice by adding
an extra call to remove() inside suspend().
pull/7228/head
Russ Butler 2018-05-27 13:15:00 -05:00 committed by adbridge
parent da400af894
commit fd68ba0d64
1 changed files with 1 additions and 0 deletions

View File

@ -74,6 +74,7 @@ void SysTimer::suspend(uint32_t ticks)
{ {
core_util_critical_section_enter(); core_util_critical_section_enter();
remove();
schedule_tick(ticks); schedule_tick(ticks);
_suspend_time_passed = false; _suspend_time_passed = false;
_suspended = true; _suspended = true;