From ffd577f30b3a9ac9a25ab18a1a82012ed16653aa Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 28 Jul 2021 10:27:40 +1000 Subject: [PATCH] Rover: use AP::compass().available in place of enabled() --- Rover/sensors.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rover/sensors.cpp b/Rover/sensors.cpp index bce8375485..afb0657c9b 100644 --- a/Rover/sensors.cpp +++ b/Rover/sensors.cpp @@ -10,7 +10,7 @@ void Rover::update_compass(void) // Save compass offsets void Rover::compass_save() { - if (AP::compass().enabled() && + if (AP::compass().available() && compass.get_learn_type() >= Compass::LEARN_INTERNAL && !arming.is_armed()) { compass.save_offsets();