1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 00:05:33 +03:00

Improved the naming of the digital idle offset getter.

This commit is contained in:
Michael Keller 2020-10-30 16:12:04 +01:00
parent 9aae36b5e5
commit 3d7ac0dc6b
7 changed files with 16 additions and 13 deletions

View file

@ -396,11 +396,6 @@ static void mixerConfigureOutput(void)
}
#endif // USE_QUAD_MIXER_ONLY
float getDynamicIdleOffset(void)
{
return motorConfig()->digitalIdleOffsetValue * 0.0001f * PWM_RANGE;
}
void mixerInit(mixerMode_e mixerMode)
{
currentMixerMode = mixerMode;
@ -415,7 +410,7 @@ void mixerInit(mixerMode_e mixerMode)
#endif
#ifdef USE_DYN_IDLE
mixerRuntime.idleThrottleOffset = getDynamicIdleOffset();
mixerRuntime.idleThrottleOffset = getDigitalIdleOffset(motorConfig()) * PWM_RANGE;
#endif
mixerConfigureOutput();