Bugfix for brushed motor support

This commit is contained in:
borisbstyle 2016-01-26 13:37:57 +01:00
parent 42bc172abc
commit 17f214d2ab
1 changed files with 1 additions and 1 deletions

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;