AP_Mount: use HAVE_PAYLOAD_SPACE()
This commit is contained in:
parent
eee06da1b5
commit
ec62d8f4ca
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user