Skip to content

Commit 24be380

Browse files
authored
Update stm32_mcu.cpp
Comment the refresh of the timer in the new alignment code, it seems to mess up with the low side current sampling
1 parent 1ae389a commit 24be380

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)