Skip to content

Commit aa6b931

Browse files
committed
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().
1 parent 9c62ea3 commit aa6b931

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rtos/TARGET_CORTEX/SysTimer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ void SysTimer::suspend(uint32_t ticks)
7474
{
7575
core_util_critical_section_enter();
7676

77+
remove();
7778
schedule_tick(ticks);
7879
_suspend_time_passed = false;
7980
_suspended = true;

0 commit comments

Comments
 (0)