mirror of https://github.com/ArduPilot/ardupilot
Tracker: compass init never fails
This commit is contained in:
parent
144f4e08b8
commit
b933f050b8
|
@ -15,7 +15,8 @@ void Tracker::init_compass()
|
|||
return;
|
||||
}
|
||||
|
||||
if (!compass.init()|| !compass.read()) {
|
||||
compass.init();
|
||||
if (!compass.read()) {
|
||||
hal.console->printf("Compass initialisation failed!\n");
|
||||
g.compass_enabled = false;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue