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/7027/head
Russ Butler 2018-05-27 13:15:00 -05:00
parent 9c62ea311d
commit aa6b931698
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();
remove();
schedule_tick(ticks);
_suspend_time_passed = false;
_suspended = true;