diff --git a/libraries/AP_Baro/AP_Baro.h b/libraries/AP_Baro/AP_Baro.h index ba76b23419..a1b4b63242 100644 --- a/libraries/AP_Baro/AP_Baro.h +++ b/libraries/AP_Baro/AP_Baro.h @@ -58,9 +58,9 @@ public: bool healthy(void) const { return healthy(_primary); } #ifdef HAL_BUILD_AP_PERIPH // calibration and alt check not valid for AP_Periph - bool healthy(uint8_t instance) const { return sensors[instance].healthy; } + bool healthy(uint8_t instance) const; #else - bool healthy(uint8_t instance) const { return sensors[instance].healthy && sensors[instance].alt_ok && sensors[instance].calibrated; } + bool healthy(uint8_t instance) const; #endif // check if all baros are healthy - used for SYS_STATUS report