Skip to content

Commit

Permalink
Update stm32_mcu.cpp
Browse files Browse the repository at this point in the history
Comment the refresh of the timer in the new alignment code, it seems to mess up with the low side current sampling
  • Loading branch information
Candas1 authored Feb 7, 2024
1 parent 1ae389a commit 24be380
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/hardware_specific/stm32/stm32_mcu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ void _alignTimersNew() {
// enable timer clock
for (int i=0; i<numTimers; i++) {
timers[i]->pause();
timers[i]->refresh();
//timers[i]->refresh();
#ifdef SIMPLEFOC_STM32_DEBUG
SIMPLEFOC_DEBUG("STM32-DRV: Restarting timer ", getTimerNumber(get_timer_index(timers[i]->getHandle()->Instance)));
#endif
Expand Down

0 comments on commit 24be380

Please sign in to comment.