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

View File

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