enable silent compare of parameter (#12850)

Remove false errors after comparing parameters that doesn't exists.
as described in #12832
This commit is contained in:
BazookaJoe1900
2019-10-07 10:50:12 +03:00
committed by Julian Oes
parent 05446c0875
commit 02e861b16e
6 changed files with 51 additions and 35 deletions
+4 -4
View File
@@ -299,7 +299,7 @@ else
#
# Set USE_IO flag.
#
if param compare SYS_USE_IO 1
if param compare -s SYS_USE_IO 1
then
set USE_IO yes
fi
@@ -347,7 +347,7 @@ else
fi
# Sensors on the PWM interface bank.
if param compare SENS_EN_LL40LS 1
if param compare -s SENS_EN_LL40LS 1
then
# Clear pins 5 and 6.
set FMU_MODE pwm4
@@ -374,7 +374,7 @@ else
#
# Check if UAVCAN is enabled, default to it for ESCs.
#
if param greater UAVCAN_ENABLE 0
if param greater -s UAVCAN_ENABLE 0
then
# Start core UAVCAN module.
if uavcan start
@@ -426,7 +426,7 @@ else
sh /etc/init.d/rc.vehicle_setup
# Camera capture driver
if param greater CAM_CAP_FBACK 0
if param greater -s CAM_CAP_FBACK 0
then
if camera_capture start
then