From 9c5a15973ac9a3ea182b72ea80498f9b9dc7bb33 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Fri, 4 Dec 2020 00:57:28 +0200 Subject: [PATCH] Fix TIM state in updated H7 HAL. --- src/sthal/h7/src/stm32h7xx_hal_tim.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sthal/h7/src/stm32h7xx_hal_tim.c b/src/sthal/h7/src/stm32h7xx_hal_tim.c index 678efc9fe..5b3004f6f 100644 --- a/src/sthal/h7/src/stm32h7xx_hal_tim.c +++ b/src/sthal/h7/src/stm32h7xx_hal_tim.c @@ -422,6 +422,9 @@ HAL_StatusTypeDef HAL_TIM_Base_Start(TIM_HandleTypeDef *htim) __HAL_TIM_ENABLE(htim); } + /* Set the TIM state */ + htim->State = HAL_TIM_STATE_READY; + /* Return function status */ return HAL_OK; }