From dae920634f2f4df2d158d27658c75a7926cd1e1f Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 27 Sep 2019 15:16:18 +1000 Subject: [PATCH] AP_Baro: exclude Sub pressure transducers from non-sub builds --- libraries/AP_Baro/AP_Baro.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_Baro/AP_Baro.cpp b/libraries/AP_Baro/AP_Baro.cpp index fe0ad02d06..b51a59d0fa 100644 --- a/libraries/AP_Baro/AP_Baro.cpp +++ b/libraries/AP_Baro/AP_Baro.cpp @@ -692,6 +692,7 @@ void AP_Baro::_probe_i2c_barometers(void) std::move(GET_I2C_DEVICE(i, HAL_BARO_LPS25H_I2C_ADDR)))); } } +#if APM_BUILD_TYPE(APM_BUILD_ArduSub) if (probe & PROBE_LPS25H) { FOREACH_I2C_MASK(i,mask) { ADD_BACKEND(AP_Baro_KellerLD::probe(*this, @@ -704,6 +705,7 @@ void AP_Baro::_probe_i2c_barometers(void) std::move(GET_I2C_DEVICE(i, HAL_BARO_MS5837_I2C_ADDR)), AP_Baro_MS56XX::BARO_MS5837)); } } +#endif } bool AP_Baro::should_log() const