diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-20 14:28:24 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-20 14:28:24 +0200 |
commit | b3a80025b3bf514e987d19b7292ba0f9d16d7d1d (patch) | |
tree | cb2723d8c2f51762a18d8e184c043d4e1e688b34 /src/modules/commander | |
parent | 5fb2a92e7704c2e298128addf890722b6b03289a (diff) | |
download | px4-firmware-b3a80025b3bf514e987d19b7292ba0f9d16d7d1d.tar.gz px4-firmware-b3a80025b3bf514e987d19b7292ba0f9d16d7d1d.tar.bz2 px4-firmware-b3a80025b3bf514e987d19b7292ba0f9d16d7d1d.zip |
Do not confuse operators / users with technical error messages
Diffstat (limited to 'src/modules/commander')
-rw-r--r-- | src/modules/commander/state_machine_helper.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/modules/commander/state_machine_helper.cpp b/src/modules/commander/state_machine_helper.cpp index 372ba9d7d..4ca8471fc 100644 --- a/src/modules/commander/state_machine_helper.cpp +++ b/src/modules/commander/state_machine_helper.cpp @@ -216,11 +216,8 @@ arming_state_transition(struct vehicle_status_s *status, /// current } if (ret == TRANSITION_DENIED) { - static const char *errMsg = "INVAL: %s - %s"; - - mavlink_log_critical(mavlink_fd, errMsg, state_names[status->arming_state], state_names[new_arming_state]); - - warnx(errMsg, state_names[status->arming_state], state_names[new_arming_state]); + /* only print to console here as this is too technical to be useful during operation */ + warnx("INVAL: %s - %s", state_names[status->arming_state], state_names[new_arming_state]); } return ret; |