From 24be38019e17b84a6673d07644f89c24a9f43daa Mon Sep 17 00:00:00 2001 From: Candas1 Date: Wed, 7 Feb 2024 16:13:12 +0100 Subject: [PATCH] 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 --- src/drivers/hardware_specific/stm32/stm32_mcu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/hardware_specific/stm32/stm32_mcu.cpp b/src/drivers/hardware_specific/stm32/stm32_mcu.cpp index bfb25789..33b5b664 100644 --- a/src/drivers/hardware_specific/stm32/stm32_mcu.cpp +++ b/src/drivers/hardware_specific/stm32/stm32_mcu.cpp @@ -382,7 +382,7 @@ void _alignTimersNew() { // enable timer clock for (int i=0; ipause(); - 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