mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
esp_timer: fix the bug that when timeout of timer happens try to run callback, and high priority task delete the timer and break the callback
This commit is contained in:
parent
a87e533ba8
commit
4de860ec89
@ -286,8 +286,10 @@ static void timer_process_alarm(esp_timer_dispatch_t dispatch_method)
|
||||
uint64_t callback_start = now;
|
||||
s_timer_in_callback = it;
|
||||
#endif
|
||||
esp_timer_cb_t callback = it->callback;
|
||||
void* arg = it->arg;
|
||||
timer_list_unlock();
|
||||
(*it->callback)(it->arg);
|
||||
(*callback)(arg);
|
||||
timer_list_lock();
|
||||
now = esp_timer_impl_get_time();
|
||||
#if WITH_PROFILING
|
||||
|
Loading…
x
Reference in New Issue
Block a user