Browse Source

Baro_MS5611: use healthy flag

mission-4.1.18
Randy Mackay 11 years ago
parent
commit
24db492131
  1. 4
      libraries/AP_Baro/AP_Baro_MS5611.cpp

4
libraries/AP_Baro/AP_Baro_MS5611.cpp

@ -340,12 +340,12 @@ bool AP_Baro_MS5611::init() @@ -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…
Cancel
Save