From 5eb96221057a079e42e45224e2f918afffeb4f98 Mon Sep 17 00:00:00 2001
From: Peter Barker <pbarker@barker.dropbear.id.au>
Date: Tue, 19 Mar 2019 12:06:03 +1100
Subject: [PATCH] GCS_MAVLink: correct compilation for ALT_FRAME issue

---
 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 406b01ecc6..e4917fdd3a 100644
--- a/libraries/GCS_MAVLink/GCS_Common.cpp
+++ b/libraries/GCS_MAVLink/GCS_Common.cpp
@@ -3960,7 +3960,7 @@ void GCS_MAVLINK::send_set_position_target_global_int(uint8_t target_system, uin
 
     // convert altitude to relative to home
     int32_t rel_alt;
-    if (!loc.get_alt_cm(Location::ALT_FRAME_ABOVE_HOME, rel_alt)) {
+    if (!loc.get_alt_cm(Location::AltFrame::ABOVE_HOME, rel_alt)) {
         return;
     }