diff --git a/Source/FanControl.cpp b/Source/FanControl.cpp index 3596d9b..70a4837 100644 --- a/Source/FanControl.cpp +++ b/Source/FanControl.cpp @@ -62,7 +62,6 @@ namespace ElektronischeLast TIM_InitStruct.ClockDivision = LL_TIM_CLOCKDIVISION_DIV1; LL_TIM_Init(TIM2, &TIM_InitStruct); LL_TIM_DisableARRPreload(TIM2); - LL_TIM_SetClockSource(TIM2, LL_TIM_CLOCKSOURCE_INTERNAL); LL_TIM_SetTriggerOutput(TIM2, LL_TIM_TRGO_RESET); LL_TIM_DisableMasterSlaveMode(TIM2); LL_TIM_IC_SetActiveInput(TIM2, LL_TIM_CHANNEL_CH1, LL_TIM_ACTIVEINPUT_DIRECTTI); @@ -73,8 +72,8 @@ namespace ElektronischeLast /* TIM14 1s ISR */ TIM_InitStruct.Prescaler = 15999; TIM_InitStruct.CounterMode = LL_TIM_COUNTERMODE_UP; - TIM_InitStruct.Autoreload = 999; - TIM_InitStruct.ClockDivision = LL_TIM_CLOCKDIVISION_DIV4; + TIM_InitStruct.Autoreload = 3999; + TIM_InitStruct.ClockDivision = LL_TIM_CLOCKDIVISION_DIV1; LL_TIM_Init(TIM14, &TIM_InitStruct); LL_TIM_DisableARRPreload(TIM14); LL_TIM_EnableIT_UPDATE(TIM14);