aboutsummaryrefslogtreecommitdiff
path: root/src/modules/commander/state_machine_helper.cpp
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-07-20 14:28:24 +0200
committerLorenz Meier <lm@inf.ethz.ch>2014-07-20 14:28:24 +0200
commitb3a80025b3bf514e987d19b7292ba0f9d16d7d1d (patch)
treecb2723d8c2f51762a18d8e184c043d4e1e688b34 /src/modules/commander/state_machine_helper.cpp
parent5fb2a92e7704c2e298128addf890722b6b03289a (diff)
downloadpx4-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/state_machine_helper.cpp')
-rw-r--r--src/modules/commander/state_machine_helper.cpp7
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;