From 3889c91974c13a359c818a50ba9af4ee50605cd3 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 15 Mar 2019 12:45:32 +1100 Subject: [PATCH] AP_AHRS: use enum class for AltFrame enumeration --- libraries/AP_AHRS/AP_AHRS_DCM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_AHRS/AP_AHRS_DCM.cpp b/libraries/AP_AHRS/AP_AHRS_DCM.cpp index 38ae2f42b5..da9428e98a 100644 --- a/libraries/AP_AHRS/AP_AHRS_DCM.cpp +++ b/libraries/AP_AHRS/AP_AHRS_DCM.cpp @@ -1044,7 +1044,7 @@ bool AP_AHRS_DCM::set_home(const Location &loc) // accessed directly by the vehicles and they may not be rigorous // in checking the frame type. Location tmp = loc; - if (!tmp.change_alt_frame(Location::ALT_FRAME_ABSOLUTE)) { + if (!tmp.change_alt_frame(Location::AltFrame::ABSOLUTE)) { return false; }