From 3efed0ba608749f546bd181db33f17c5951de883 Mon Sep 17 00:00:00 2001 From: O-to-the-o <58134384+O-to-the-o@users.noreply.github.com> Date: Mon, 5 Oct 2026 10:33:06 +0200 Subject: [PATCH] Update stm32_mcu.cpp Fixes compile error for type missmatch not allowing compilation for stm32 targets error: .pio/libdeps/nucleo/Simple FOC/src/drivers/hardware_specific/stm32/stm32_mcu.cpp:126:20: error: cannot convert 'TIM_HandleTypeDef*' to 'TIM_TypeDef*' 126 | enableTimerClock(handle); | ^~~~~~ | | | TIM_HandleTypeDef* --- 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 5c9fea705..6ff662a8e 100644 --- a/src/drivers/hardware_specific/stm32/stm32_mcu.cpp +++ b/src/drivers/hardware_specific/stm32/stm32_mcu.cpp @@ -123,7 +123,7 @@ TIM_HandleTypeDef* stm32_useTimer(PinMap* timer) { #if defined(TIM_RCR_REP) handle->Init.RepetitionCounter = 1; #endif - enableTimerClock(handle); + enableTimerClock(handle->Instance); HAL_TIM_Base_Init(handle); stm32_pauseTimer(handle); timersUsed[numTimersUsed++] = handle;