mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 06:23:34 +08:00
param compare/greater: do not print 'parameter not found' message
Reduces clutter in the boot output (now that we have it in the log). On omnibus for example we see: ERROR [param] Parameter SENS_EN_BATT not found ERROR [param] Parameter SENS_EN_LL40LS not found ERROR [param] Parameter SENS_EN_LL40LS not found ERROR [param] Parameter SENS_EN_MB12XX not found ERROR [param] Parameter SENS_EN_PGA460 not found ERROR [param] Parameter SENS_EN_SF1XX not found ERROR [param] Parameter SENS_EN_TRANGER not found
This commit is contained in:
@@ -4,13 +4,10 @@
|
|||||||
# NOTE: Script variables are declared/initialized/unset in the rcS script.
|
# NOTE: Script variables are declared/initialized/unset in the rcS script.
|
||||||
#
|
#
|
||||||
|
|
||||||
if ! ver hwcmp PX4_SITL
|
if param greater UAVCAN_ENABLE 1
|
||||||
then
|
then
|
||||||
if param greater UAVCAN_ENABLE 1
|
# Reduce logger buffer to free up some RAM for UAVCAN servers.
|
||||||
then
|
set LOGGER_BUF 6
|
||||||
# Reduce logger buffer to free up some RAM for UAVCAN servers.
|
|
||||||
set LOGGER_BUF 6
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|||||||
@@ -709,7 +709,7 @@ do_compare(const char *name, char *vals[], unsigned comparisons, enum COMPARE_OP
|
|||||||
/* set nothing if parameter cannot be found */
|
/* set nothing if parameter cannot be found */
|
||||||
if (param == PARAM_INVALID) {
|
if (param == PARAM_INVALID) {
|
||||||
/* param not found */
|
/* param not found */
|
||||||
PX4_ERR("Parameter %s not found", name);
|
PX4_DEBUG("Parameter %s not found", name);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user