ROMFS: silently compare optional parameters

- not all build configurations have these parameters/modules
This commit is contained in:
Daniel Agar
2020-11-11 08:03:48 +01:00
committed by Beat Küng
parent 7ba73b46ca
commit 9767a73619
5 changed files with 14 additions and 14 deletions
+3 -3
View File
@@ -18,7 +18,7 @@ set OUTPUT_DEV none
# If mount (gimbal) control is enabled and output mode is AUX, set the aux
# mixer to mount (override the airframe-specific MIXER_AUX setting).
#
if ! param compare -s MNT_MODE_IN -1
if param greater -s MNT_MODE_IN -1
then
if param compare -s MNT_MODE_OUT 0
then
@@ -43,13 +43,13 @@ then
if [ $IO_PRESENT = yes ]
then
set OUTPUT_MODE io
if param greater DSHOT_CONFIG 0
if param greater -s DSHOT_CONFIG 0
then
set OUTPUT_CMD dshot
fi
fi
else
if param greater DSHOT_CONFIG 0
if param greater -s DSHOT_CONFIG 0
then
set OUTPUT_MODE dshot
set OUTPUT_CMD dshot