From 711bbeb6f39c8ec12e95bf203c2329c130f02b5e Mon Sep 17 00:00:00 2001 From: Jason Short Date: Mon, 25 Jun 2012 23:06:13 -0700 Subject: [PATCH] GCS_Mavlink.pde : mav_nav only used in legacy Mavlink. --- ArduCopter/GCS_Mavlink.pde | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ArduCopter/GCS_Mavlink.pde b/ArduCopter/GCS_Mavlink.pde index 17dac5a4b0..d119600849 100644 --- a/ArduCopter/GCS_Mavlink.pde +++ b/ArduCopter/GCS_Mavlink.pde @@ -1006,7 +1006,11 @@ GCS_MAVLINK::send_text(gcs_severity severity, const prog_char_t *str) void GCS_MAVLINK::handleMessage(mavlink_message_t* msg) { struct Location tell_command = {}; // command for telemetry - static uint8_t mav_nav = 255; // For setting mode (some require receipt of 2 messages...) + + #if MAVLINK10 == ENABLED + #else + static uint8_t mav_nav = 255; // For setting mode (some require receipt of 2 messages...) + #endif switch (msg->msgid) {