From 713e138c4296b32c5f497b45467589fe7573e0ac Mon Sep 17 00:00:00 2001 From: atomiclama Date: Mon, 18 May 2015 12:10:59 +0100 Subject: [PATCH] Changed idle pulse width from fixed 1ms to that configured. Stops motors, that have none standard pulse ranges, from running up after a save or exit from cli. --- src/main/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/main.c b/src/main/main.c index 0fec6880a6..1af10189bc 100644 --- a/src/main/main.c +++ b/src/main/main.c @@ -226,7 +226,7 @@ void init(void) pwm_params.useOneshot = feature(FEATURE_ONESHOT125); pwm_params.motorPwmRate = masterConfig.motor_pwm_rate; - pwm_params.idlePulse = PULSE_1MS; // standard PWM for brushless ESC (default, overridden below) + pwm_params.idlePulse = masterConfig.escAndServoConfig.mincommand; if (feature(FEATURE_3D)) pwm_params.idlePulse = masterConfig.flight3DConfig.neutral3d; if (pwm_params.motorPwmRate > 500)