From 4e1ef8ef46df96498452562e166f343e8770abc6 Mon Sep 17 00:00:00 2001 From: junan Date: Mon, 2 Sep 2024 13:57:57 +0800 Subject: [PATCH] AP_Baro: remove unnecessary "#ifdef HAL_BUILD_AP_PERIPH" Signed-off-by: junan AP_Baro: Update libraries/AP_Baro/AP_Baro.h suggested by @peterbarker Co-authored-by: Peter Barker --- libraries/AP_Baro/AP_Baro.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libraries/AP_Baro/AP_Baro.h b/libraries/AP_Baro/AP_Baro.h index 506e260dd3..6fdbb02880 100644 --- a/libraries/AP_Baro/AP_Baro.h +++ b/libraries/AP_Baro/AP_Baro.h @@ -56,12 +56,8 @@ public: // healthy - returns true if sensor and derived altitude are good 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; -#else - bool healthy(uint8_t instance) const; -#endif // check if all baros are healthy - used for SYS_STATUS report bool all_healthy(void) const;