mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 17:23:33 +08:00
print error only if the mavlink command fails
In some cases we printed also the mavlink commands that replied to be unsupported. This is not an error to show in the log.
This commit is contained in:
committed by
Beat Küng
parent
199b5e7d48
commit
88521b0145
@@ -780,7 +780,7 @@ MavlinkReceiver::handle_message_command_ack(mavlink_message_t *msg)
|
||||
_cmd_ack_pub.publish(command_ack);
|
||||
|
||||
// TODO: move it to the same place that sent the command
|
||||
if (ack.result != MAV_RESULT_ACCEPTED && ack.result != MAV_RESULT_IN_PROGRESS) {
|
||||
if (ack.result == MAV_RESULT_FAILED) {
|
||||
if (msg->compid == MAV_COMP_ID_CAMERA) {
|
||||
PX4_WARN("Got unsuccessful result %" PRIu8 " from camera", ack.result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user