From 544d872d65bfc00ab017404bd73702d011265c59 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 1 Jul 2014 09:18:20 +1000 Subject: [PATCH] GCS_MAVLink: fixed a shadowed variable --- libraries/GCS_MAVLink/GCS_Common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/GCS_MAVLink/GCS_Common.cpp b/libraries/GCS_MAVLink/GCS_Common.cpp index cc3cd3f7d0..9aea277e3a 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -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); }