Browse Source

Rover: fixed type of payload size

mission-4.1.18
Andrew Tridgell 13 years ago
parent
commit
e04de04cbd
  1. 2
      APMrover2/GCS_Mavlink.pde

2
APMrover2/GCS_Mavlink.pde

@ -516,7 +516,7 @@ static bool telemetry_delayed(mavlink_channel_t chan) @@ -516,7 +516,7 @@ static bool telemetry_delayed(mavlink_channel_t chan)
// try to send a message, return false if it won't fit in the serial tx buffer
static bool mavlink_try_send_message(mavlink_channel_t chan, enum ap_message id, uint16_t packet_drops)
{
int payload_space = comm_get_txspace(chan) - MAVLINK_NUM_NON_PAYLOAD_BYTES;
int16_t payload_space = comm_get_txspace(chan) - MAVLINK_NUM_NON_PAYLOAD_BYTES;
if (telemetry_delayed(chan)) {
return false;

Loading…
Cancel
Save