Rundungsfehler reduzieren
This commit is contained in:
parent
e1dfaa3b45
commit
6808851caf
@ -23,7 +23,7 @@ extern "C" void TIM14_IRQHandler(void)
|
||||
}
|
||||
extern "C" void FanControl_SetDuty(uint32_t d)
|
||||
{
|
||||
duty = TIMER_RELOAD_VALUE / 100UL * d;
|
||||
duty = TIMER_RELOAD_VALUE * d / 100UL ;
|
||||
}
|
||||
namespace ElektronischeLast
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user