Skip to content

Commit f32083a

Browse files
committed
Fix timerRestart
Closes: #2944 Thanks @atanisoft
1 parent b30e55e commit f32083a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cores/esp32/esp32-hal-timer.c

+1
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ void timerStop(hw_timer_t *timer){
165165

166166
void timerRestart(hw_timer_t *timer){
167167
timer->dev->config.enable = 0;
168+
timer->dev->reload = 1;
168169
timer->dev->config.enable = 1;
169170
}
170171

0 commit comments

Comments
 (0)