diff --git a/ArduSub/system.cpp b/ArduSub/system.cpp index 3b3f80ed06..eb1fbd6df5 100644 --- a/ArduSub/system.cpp +++ b/ArduSub/system.cpp @@ -39,10 +39,10 @@ void Sub::init_ardupilot() // Detection won't work until after BoardConfig.init() switch (AP_BoardConfig::get_board_type()) { case AP_BoardConfig::PX4_BOARD_PIXHAWK2: - AP_Param::set_default_by_name("GND_EXT_BUS", 0); + AP_Param::set_by_name("GND_EXT_BUS", 0); break; default: - AP_Param::set_default_by_name("GND_EXT_BUS", 1); + AP_Param::set_by_name("GND_EXT_BUS", 1); break; } #else