mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
Baro_MS5611: use healthy flag
This commit is contained in:
parent
72f6985bd8
commit
24db492131
@ -340,12 +340,12 @@ bool AP_Baro_MS5611::init()
|
||||
if (hal.scheduler->millis() - tstart > 1000) {
|
||||
hal.scheduler->panic(PSTR("PANIC: AP_Baro_MS5611 took more than "
|
||||
"1000ms to initialize"));
|
||||
healthy = false;
|
||||
_flags.healthy = false;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
healthy = true;
|
||||
_flags.healthy = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user