mirror of https://github.com/ArduPilot/ardupilot
AntennaTracker: use AP::compass().available in place of enabled()
This commit is contained in:
parent
431c186306
commit
0189ee2a04
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue