Fix timerRestart
Closes: https://github.com/espressif/arduino-esp32/issues/2944 Thanks @atanisoft
This commit is contained in:
parent
b30e55efff
commit
f32083a6d0
@ -165,6 +165,7 @@ void timerStop(hw_timer_t *timer){
|
|||||||
|
|
||||||
void timerRestart(hw_timer_t *timer){
|
void timerRestart(hw_timer_t *timer){
|
||||||
timer->dev->config.enable = 0;
|
timer->dev->config.enable = 0;
|
||||||
|
timer->dev->reload = 1;
|
||||||
timer->dev->config.enable = 1;
|
timer->dev->config.enable = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user