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