AP_Mount: use HAVE_PAYLOAD_SPACE()

This commit is contained in:
Andrew Tridgell 2016-04-05 14:10:41 +10:00
parent eee06da1b5
commit ec62d8f4ca

View File

@ -133,7 +133,7 @@ void AP_Mount_SToRM32::send_do_mount_control(float pitch_deg, float roll_deg, fl
}
// check we have space for the message
if (comm_get_txspace(_chan) < MAVLINK_NUM_NON_PAYLOAD_BYTES+MAVLINK_MSG_ID_COMMAND_LONG_LEN) {
if (!HAVE_PAYLOAD_SPACE(_chan, COMMAND_LONG)) {
return;
}