Sub: add exception for linux boards when setting BARO_EXT_BUS

This commit is contained in:
Willian Galvani 2021-08-18 16:16:25 -03:00
parent 2d5d6171d7
commit 16db1234d4
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ void Sub::init_ardupilot()
AP_Param::set_default_by_name("BARO_EXT_BUS", 1); AP_Param::set_default_by_name("BARO_EXT_BUS", 1);
break; break;
} }
#else #elif CONFIG_HAL_BOARD != HAL_BOARD_LINUX
AP_Param::set_default_by_name("BARO_EXT_BUS", 1); AP_Param::set_default_by_name("BARO_EXT_BUS", 1);
#endif #endif
celsius.init(barometer.external_bus()); celsius.init(barometer.external_bus());