AP_Baro: remove unnecessary "#ifdef HAL_BUILD_AP_PERIPH"

Signed-off-by: junan <junan76@163.com>

AP_Baro: Update libraries/AP_Baro/AP_Baro.h suggested by @peterbarker

Co-authored-by: Peter Barker <pb-gh@barker.dropbear.id.au>
This commit is contained in:
junan 2024-09-02 13:57:57 +08:00 committed by Randy Mackay
parent 4ff6f603b2
commit 4e1ef8ef46
1 changed files with 1 additions and 5 deletions

View File

@ -56,12 +56,8 @@ public:
// healthy - returns true if sensor and derived altitude are good // healthy - returns true if sensor and derived altitude are good
bool healthy(void) const { return healthy(_primary); } 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; 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 // check if all baros are healthy - used for SYS_STATUS report
bool all_healthy(void) const; bool all_healthy(void) const;