mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
AP_Baro: use in-tree drivers for PH2SLIM
This commit is contained in:
parent
e7a9de9b41
commit
d716bbedee
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user