Skip to content
Snippets Groups Projects
Commit d716bbed authored by Andrew Tridgell's avatar Andrew Tridgell
Browse files

AP_Baro: use in-tree drivers for PH2SLIM

parent e7a9de9b
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment