Fix timerRestart
Closes: https://github.com/espressif/arduino-esp32/issues/2944 Thanks @atanisoft
This commit is contained in:
parent
b30e55efff
commit
f32083a6d0
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue