mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
GCS_MAVLink: fixed a shadowed variable
This commit is contained in:
parent
773bc7bcbe
commit
544d872d65
@ -932,7 +932,7 @@ bool GCS_MAVLINK::send_gps_raw(AP_GPS &gps)
|
||||
|
||||
#if GPS_RTK_AVAILABLE
|
||||
if (gps.highest_supported_status(0) > AP_GPS::GPS_OK_FIX_3D) {
|
||||
int16_t payload_space = comm_get_txspace(chan) - MAVLINK_NUM_NON_PAYLOAD_BYTES;
|
||||
payload_space = comm_get_txspace(chan) - MAVLINK_NUM_NON_PAYLOAD_BYTES;
|
||||
if (payload_space >= MAVLINK_MSG_ID_GPS_RTK_LEN) {
|
||||
gps.send_mavlink_gps_rtk(chan);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user