Skip to content

Commit

Permalink
AP_Baro: remove unnecessary "#ifdef HAL_BUILD_AP_PERIPH"
Browse files Browse the repository at this point in the history
Signed-off-by: junan <[email protected]>

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

Co-authored-by: Peter Barker <[email protected]>
  • Loading branch information
2 people authored and rmackay9 committed Sep 4, 2024
1 parent 4ff6f60 commit 4e1ef8e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions libraries/AP_Baro/AP_Baro.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,8 @@ class AP_Baro

// 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;
Expand Down

0 comments on commit 4e1ef8e

Please sign in to comment.