AntennaTracker: use AP::compass().available in place of enabled()

This commit is contained in:
Peter Barker 2021-07-28 10:27:38 +10:00 committed by Peter Barker
parent 431c186306
commit 0189ee2a04
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ void Tracker::update_compass(void)
// Save compass offsets
void Tracker::compass_save() {
if (AP::compass().enabled() &&
if (AP::compass().available() &&
compass.get_learn_type() >= Compass::LEARN_INTERNAL &&
!hal.util->get_soft_armed()) {
compass.save_offsets();