AP_Baro: exclude Sub pressure transducers from non-sub builds

This commit is contained in:
Peter Barker 2019-09-27 15:16:18 +10:00 committed by Andrew Tridgell
parent 1635da1dd7
commit 04ee459e8c
1 changed files with 2 additions and 0 deletions

View File

@ -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