Skip to content

Commit

Permalink
Fix timerRestart
Browse files Browse the repository at this point in the history
Closes: #2944

Thanks @atanisoft
  • Loading branch information
me-no-dev committed Sep 24, 2019
1 parent b30e55e commit f32083a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cores/esp32/esp32-hal-timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit f32083a

Please sign in to comment.