Merge pull request #607 from FlavioBayer/patch-1
bugfix/ets_timer.c: race condition while disarming
This commit is contained in:
commit
0fa4213577
1 changed files with 1 additions and 1 deletions
|
@ -244,9 +244,9 @@ void sdk_ets_timer_disarm(ets_timer_t *timer)
|
|||
prev = curr;
|
||||
curr = curr->next;
|
||||
}
|
||||
vPortExitCritical();
|
||||
timer->next = ETS_TIMER_NOT_ARMED;
|
||||
timer->period_ticks = 0;
|
||||
vPortExitCritical();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue