forked from espressif/arduino-esp32
Fix timerRestart
Closes: https://github.com/espressif/arduino-esp32/issues/2944 Thanks @atanisoft
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user