From 697d713faf5964045c491313e2a49db70b460a31 Mon Sep 17 00:00:00 2001 From: Silvan Fuhrer Date: Tue, 1 Jun 2021 00:06:07 +0200 Subject: [PATCH] pwm out: disable PWM parameter update on param change Only update PWM params on initialisation. Updating PWM params on param change was interfering with VTOL parameter settings (e.g. PWM_MIN is set by VTOL at init, and was then overwritten here after an arbitrary param change). Signed-off-by: Silvan Fuhrer --- src/drivers/pwm_out/PWMOut.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/pwm_out/PWMOut.cpp b/src/drivers/pwm_out/PWMOut.cpp index a8b00e9c10..c36c7bc68d 100644 --- a/src/drivers/pwm_out/PWMOut.cpp +++ b/src/drivers/pwm_out/PWMOut.cpp @@ -640,7 +640,7 @@ void PWMOut::Run() _parameter_update_sub.copy(&pupdate); // update parameters from storage - update_params(); + // update_params(); // do not update PWM params for now (was interfering with VTOL PWM settings) } if (_current_update_rate == 0) {