How to clear esp_timer memory?
How to clear esp_timer memory?
esp_timer_create(&retry_count_timer_args, &retry_count_timer);
esp_timer_start_once(retry_count_timer, retry_count_time_us);
I created a timer using the above two functions and then after the timer expires I want to free the memory of the timer.
I used the following function but it is causing the program to crash.
esp_timer_stop(retry_count_timer));
esp_timer_delete(retry_count_timer);
Please let me know if I am doing something wrong. Thank you
-
- Posts: 9730
- Joined: Thu Nov 26, 2015 4:08 am
Re: How to clear esp_timer memory?
Sounds like you're using it correctly. What exactly crashes, can you give us a backtrace?
Who is online
Users browsing this forum: Baidu [Spider] and 116 guests