From 7c0165ea0c4f783c1d49a9446d5559248c0cc171 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Thu, 2 Dec 2021 12:14:37 +0100 Subject: [PATCH] ROMFS: avoid setting none params --- ROMFS/px4fmu_common/init.d/rc.interface | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/ROMFS/px4fmu_common/init.d/rc.interface b/ROMFS/px4fmu_common/init.d/rc.interface index b9b91c4460..24e7dd5636 100644 --- a/ROMFS/px4fmu_common/init.d/rc.interface +++ b/ROMFS/px4fmu_common/init.d/rc.interface @@ -18,8 +18,17 @@ set OUTPUT_AUX_DEV /dev/pwm_output1 set OUTPUT_EXTRA_DEV /dev/pwm_output0 # set these before starting the modules -param set PWM_AUX_OUT ${PWM_AUX_OUT} -param set PWM_MAIN_OUT ${PWM_OUT} +if [ $PWM_AUX_OUT != none ] +then + + param set PWM_AUX_OUT ${PWM_AUX_OUT} +fi + + +if [ $PWM_OUT != none ] +then + param set PWM_MAIN_OUT ${PWM_OUT} +fi # # If mount (gimbal) control is enabled and output mode is AUX, set the aux