Plane: compass init never fails

This commit is contained in:
Peter Barker 2018-07-03 19:09:01 +10:00 committed by Peter Barker
parent 069a2d0e35
commit d489d9a585

View File

@ -117,7 +117,8 @@ void Plane::init_ardupilot()
airspeed.init();
if (g.compass_enabled==true) {
bool compass_ok = compass.init() && compass.read();
compass.init();
bool compass_ok = compass.read();
#if HIL_SUPPORT
if (g.hil_mode != 0) {
compass_ok = true;