From 16db1234d4229e3cef40a3ccbe95ab939a37649a Mon Sep 17 00:00:00 2001 From: Willian Galvani Date: Wed, 18 Aug 2021 16:16:25 -0300 Subject: [PATCH] Sub: add exception for linux boards when setting BARO_EXT_BUS --- ArduSub/system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduSub/system.cpp b/ArduSub/system.cpp index 9815887536..8d57bdadea 100644 --- a/ArduSub/system.cpp +++ b/ArduSub/system.cpp @@ -49,7 +49,7 @@ void Sub::init_ardupilot() AP_Param::set_default_by_name("BARO_EXT_BUS", 1); break; } -#else +#elif CONFIG_HAL_BOARD != HAL_BOARD_LINUX AP_Param::set_default_by_name("BARO_EXT_BUS", 1); #endif celsius.init(barometer.external_bus());