From 03552cbae45a7a143b410747544794fe9a2990cc Mon Sep 17 00:00:00 2001 From: Carsten Keller Date: Sun, 9 Jun 2024 17:57:59 +0200 Subject: [PATCH] Mit 60 Multiplizieren um Umdrehungen pro Minute zu bekommen --- Source/FanControl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/FanControl.cpp b/Source/FanControl.cpp index a3660c4..4fa7f00 100644 --- a/Source/FanControl.cpp +++ b/Source/FanControl.cpp @@ -18,7 +18,7 @@ extern "C" void TIM14_IRQHandler(void) { LL_TIM_ClearFlag_UPDATE(TIM14); - fan_speed = LL_TIM_GetCounter(TIM2) / 2UL; + fan_speed = LL_TIM_GetCounter(TIM2) *60U / 2UL; LL_TIM_SetCounter(TIM2, 0UL); } extern "C" void FanControl_SetDuty(uint32_t d)