From 3f7eb693273376265b85a200f3f73196dba99558 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 27 Nov 2017 17:18:14 +1100 Subject: [PATCH] Tracker: tighten type of result variable in handleMessage --- AntennaTracker/GCS_Mavlink.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AntennaTracker/GCS_Mavlink.cpp b/AntennaTracker/GCS_Mavlink.cpp index 7f7b57475c..5970f45366 100644 --- a/AntennaTracker/GCS_Mavlink.cpp +++ b/AntennaTracker/GCS_Mavlink.cpp @@ -480,7 +480,7 @@ void GCS_MAVLINK_Tracker::handleMessage(mavlink_message_t* msg) mavlink_command_long_t packet; mavlink_msg_command_long_decode(msg, &packet); - uint8_t result = MAV_RESULT_UNSUPPORTED; + MAV_RESULT result = MAV_RESULT_UNSUPPORTED; // do command send_text(MAV_SEVERITY_INFO,"Command received: "); @@ -625,7 +625,7 @@ void GCS_MAVLINK_Tracker::handleMessage(mavlink_message_t* msg) { // decode mavlink_mission_item_t packet; - uint8_t result = MAV_MISSION_ACCEPTED; + MAV_MISSION_RESULT result = MAV_MISSION_ACCEPTED; mavlink_msg_mission_item_decode(msg, &packet);