mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
APMrover2: compass init never fails
This commit is contained in:
parent
6d87b9316f
commit
144f4e08b8
@ -10,7 +10,8 @@ void Rover::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
Block a user