Skip to content

Commit 97a3978

Browse files
authored
Merge pull request #378 from Candas1/timer_counter_off
Update stm32_mcu.cpp
2 parents 1ae389a + 24be380 commit 97a3978

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/drivers/hardware_specific/stm32/stm32_mcu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ void _alignTimersNew() {
382382
// enable timer clock
383383
for (int i=0; i<numTimers; i++) {
384384
timers[i]->pause();
385-
timers[i]->refresh();
385+
//timers[i]->refresh();
386386
#ifdef SIMPLEFOC_STM32_DEBUG
387387
SIMPLEFOC_DEBUG("STM32-DRV: Restarting timer ", getTimerNumber(get_timer_index(timers[i]->getHandle()->Instance)));
388388
#endif

0 commit comments

Comments
 (0)