mirror of
https://github.com/espressif/esp-idf
synced 2025-03-11 10:09:08 -04:00
Merge branch 'bugfix/fix_timer_deleted_and_run_broken_callback_v3.3' into 'release/v3.3'
esp_timer: fix the bug that when timeout of timer happens try to run callback(v3.3) See merge request espressif/esp-idf!6768
This commit is contained in:
commit
0d6cae963b
@ -299,8 +299,10 @@ static void timer_process_alarm(esp_timer_dispatch_t dispatch_method)
|
|||||||
#if WITH_PROFILING
|
#if WITH_PROFILING
|
||||||
uint64_t callback_start = now;
|
uint64_t callback_start = now;
|
||||||
#endif
|
#endif
|
||||||
|
esp_timer_cb_t callback = it->callback;
|
||||||
|
void* arg = it->arg;
|
||||||
timer_list_unlock();
|
timer_list_unlock();
|
||||||
(*it->callback)(it->arg);
|
(*callback)(arg);
|
||||||
timer_list_lock();
|
timer_list_lock();
|
||||||
now = esp_timer_impl_get_time();
|
now = esp_timer_impl_get_time();
|
||||||
#if WITH_PROFILING
|
#if WITH_PROFILING
|
||||||
|
Loading…
x
Reference in New Issue
Block a user