Commit f32083a6 authored by me-no-dev's avatar me-no-dev

Fix timerRestart

Closes: https://github.com/espressif/arduino-esp32/issues/2944

Thanks @atanisoft
parent b30e55ef
......@@ -165,6 +165,7 @@ void timerStop(hw_timer_t *timer){
void timerRestart(hw_timer_t *timer){
timer->dev->config.enable = 0;
timer->dev->reload = 1;
timer->dev->config.enable = 1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment