1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-22 07:45:29 +03:00

Bugfix for brushed motor support

This commit is contained in:
borisbstyle 2016-01-26 13:37:57 +01:00
parent 42bc172abc
commit 17f214d2ab

View file

@ -263,7 +263,7 @@ void init(void)
pwm_params.idlePulse = masterConfig.escAndServoConfig.mincommand;
if (feature(FEATURE_3D))
pwm_params.idlePulse = masterConfig.flight3DConfig.neutral3d;
pwm_params.useFastPWM = masterConfig.use_fast_pwm ? true : false;
if (pwm_params.motorPwmRate > 500 && !masterConfig.use_fast_pwm)
pwm_params.idlePulse = 0; // brushed motors
#ifdef CC3D
pwm_params.useBuzzerP6 = masterConfig.use_buzzer_p6 ? true : false;