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

This commit is contained in:
Peter Barker 2021-07-28 10:27:39 +10:00 committed by Peter Barker
parent f7b877f4da
commit c348f602d9

View File

@ -312,7 +312,7 @@ void Plane::three_hz_loop()
void Plane::compass_save()
{
if (AP::compass().enabled() &&
if (AP::compass().available() &&
compass.get_learn_type() >= Compass::LEARN_INTERNAL &&
!hal.util->get_soft_armed()) {
/*