From 68edf6351d25f8d5670c33e18e36ba185ae04431 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 1 Aug 2019 11:02:54 +1000 Subject: [PATCH] Sub: tighten type on mavlink_coordinate_frame_to_location_alt_frame --- ArduSub/GCS_Mavlink.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduSub/GCS_Mavlink.cpp b/ArduSub/GCS_Mavlink.cpp index 081cba6dc1..62584e73d5 100644 --- a/ArduSub/GCS_Mavlink.cpp +++ b/ArduSub/GCS_Mavlink.cpp @@ -683,7 +683,7 @@ void GCS_MAVLINK_Sub::handleMessage(const mavlink_message_t &msg) break; } Location::AltFrame frame; - if (!mavlink_coordinate_frame_to_location_alt_frame(packet.coordinate_frame, frame)) { + if (!mavlink_coordinate_frame_to_location_alt_frame((MAV_FRAME)packet.coordinate_frame, frame)) { // unknown coordinate frame break; }