From 31065bc9d23d6eaf0038317fce8c7f822cf5b0a5 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 77bada92a3..5cf9e6dc2a 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; #ifndef COMPASS_LEARN_DEFAULT #define COMPASS_LEARN_DEFAULT Compass::LEARN_NONE