AP_Baro: support ChibiOS FMUv4

This commit is contained in:
Andrew Tridgell 2018-01-10 21:34:31 +11:00
parent 02c3bea5a5
commit 0b6659b36a

View File

@ -410,7 +410,7 @@ void AP_Baro::init(void)
} while (added); } while (added);
#endif #endif
#if HAL_BARO_DEFAULT == HAL_BARO_PX4 || HAL_BARO_DEFAULT == HAL_BARO_VRBRAIN || defined(HAL_CHIBIOS_ARCH_FMUV3) #if AP_FEATURE_BOARD_DETECT
switch (AP_BoardConfig::get_board_type()) { switch (AP_BoardConfig::get_board_type()) {
case AP_BoardConfig::PX4_BOARD_PX4V1: case AP_BoardConfig::PX4_BOARD_PX4V1:
#ifdef HAL_BARO_MS5611_I2C_BUS #ifdef HAL_BARO_MS5611_I2C_BUS