ArduPlane: use AP::compass().available in place of enabled()
This commit is contained in:
parent
f7b877f4da
commit
c348f602d9
@ -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()) {
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user