From 8e412d0885496e91119976dc6bcce0abd596c5eb Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 27 Dec 2018 22:57:39 +1100 Subject: [PATCH] AP_Compass: adjust for new vehicle base class --- libraries/AP_Compass/AP_Compass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Compass/AP_Compass.cpp b/libraries/AP_Compass/AP_Compass.cpp index 0a8131763c..02a4216234 100644 --- a/libraries/AP_Compass/AP_Compass.cpp +++ b/libraries/AP_Compass/AP_Compass.cpp @@ -28,7 +28,7 @@ #include "AP_Compass.h" #include "Compass_learn.h" -extern AP_HAL::HAL& hal; +extern const AP_HAL::HAL& hal; #if APM_BUILD_TYPE(APM_BUILD_ArduCopter) || APM_BUILD_TYPE(APM_BUILD_ArduSub) #define COMPASS_LEARN_DEFAULT Compass::LEARN_NONE