mirror of https://github.com/ARMmbed/mbed-os.git
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
parent
da400af894
commit
fd68ba0d64
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue