Fix timerRestart

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

Thanks @atanisoft
This commit is contained in:
me-no-dev 2019-09-24 19:25:27 +03:00
parent b30e55efff
commit f32083a6d0

View File

@ -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;
}