GCS_MAVLink: correct check for payload space for COMMAND_ACK

This commit is contained in:
Peter Barker 2020-04-25 08:21:20 +10:00 committed by Peter Barker
parent 668e0d0e65
commit 8b0b644c11
1 changed files with 1 additions and 1 deletions

View File

@ -2079,7 +2079,7 @@ void GCS_MAVLINK::handle_set_mode(const mavlink_message_t &msg)
// command. The command we are acking (ID=11) doesn't actually // command. The command we are acking (ID=11) doesn't actually
// exist, but if it did we'd probably be acking something // exist, but if it did we'd probably be acking something
// completely unrelated to setting modes. // completely unrelated to setting modes.
if (HAVE_PAYLOAD_SPACE(chan, MAVLINK_MSG_ID_COMMAND_ACK)) { if (HAVE_PAYLOAD_SPACE(chan, COMMAND_ACK)) {
mavlink_msg_command_ack_send(chan, MAVLINK_MSG_ID_SET_MODE, result); mavlink_msg_command_ack_send(chan, MAVLINK_MSG_ID_SET_MODE, result);
} }
} }