Mit 60 Multiplizieren um Umdrehungen pro Minute zu bekommen

This commit is contained in:
Carsten Keller 2024-06-09 17:57:59 +02:00
parent e06aa450de
commit 03552cbae4
Signed by: carsten
GPG Key ID: DF06343A3A9B8868

View File

@ -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)