Tracker: compass init never fails

This commit is contained in:
Peter Barker 2018-07-03 19:06:31 +10:00 committed by Peter Barker
parent 144f4e08b8
commit b933f050b8
1 changed files with 2 additions and 1 deletions

View File

@ -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 {