From 5736a31a6766cf087569bfe46512709c01939266 Mon Sep 17 00:00:00 2001 From: Matthias Grob Date: Tue, 5 Jul 2022 10:52:38 +0200 Subject: [PATCH] rc.interface: explicitly save empty ESC mask --- ROMFS/px4fmu_common/init.d/rc.interface | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ROMFS/px4fmu_common/init.d/rc.interface b/ROMFS/px4fmu_common/init.d/rc.interface index fee6ad252c..b97829ffdb 100644 --- a/ROMFS/px4fmu_common/init.d/rc.interface +++ b/ROMFS/px4fmu_common/init.d/rc.interface @@ -17,17 +17,21 @@ set OUTPUT_DEV none set OUTPUT_AUX_DEV /dev/pwm_output1 set OUTPUT_EXTRA_DEV /dev/pwm_output0 -# set these before starting the modules +# set ESC mask before starting the modules +# setting the numeric parameter to "none" would make the startup script fail if [ $PWM_AUX_OUT != none ] then - param set PWM_AUX_OUT ${PWM_AUX_OUT} +else + param set PWM_AUX_OUT 0 fi if [ $PWM_OUT != none ] then param set PWM_MAIN_OUT ${PWM_OUT} +else + param set PWM_AUX_OUT 0 fi #