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:
Beat Küng
2019-06-06 09:54:35 +02:00
committed by Daniel Agar
parent 0553d4d01e
commit 5c715978e8
2 changed files with 4 additions and 7 deletions

View File

@@ -709,7 +709,7 @@ do_compare(const char *name, char *vals[], unsigned comparisons, enum COMPARE_OP
/* set nothing if parameter cannot be found */
if (param == PARAM_INVALID) {
/* param not found */
PX4_ERR("Parameter %s not found", name);
PX4_DEBUG("Parameter %s not found", name);
return 1;
}