mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-27 10:17:45 +08:00
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:
committed by
Julian Oes
parent
05446c0875
commit
02e861b16e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user