AP_Baro: use in-tree drivers for PH2SLIM

This commit is contained in:
Andrew Tridgell 2016-11-09 21:19:11 +11:00
parent e7a9de9b41
commit d716bbedee
1 changed files with 2 additions and 1 deletions

View File

@ -299,7 +299,8 @@ void AP_Baro::init(void)
_num_drivers = 1;
#endif
} else if (AP_BoardConfig::get_board_type() == AP_BoardConfig::PX4_BOARD_TEST_V2 ||
AP_BoardConfig::get_board_type() == AP_BoardConfig::PX4_BOARD_PHMINI) {
AP_BoardConfig::get_board_type() == AP_BoardConfig::PX4_BOARD_PHMINI ||
AP_BoardConfig::get_board_type() == AP_BoardConfig::PX4_BOARD_PH2SLIM) {
drivers[0] = new AP_Baro_MS5611(*this,
std::move(hal.spi->get_device(HAL_BARO_MS5611_NAME)));
_num_drivers = 1;