diff --git a/ArduSub/Parameters.cpp b/ArduSub/Parameters.cpp index 549c7af068..234598351e 100644 --- a/ArduSub/Parameters.cpp +++ b/ArduSub/Parameters.cpp @@ -521,7 +521,7 @@ const AP_Param::Info Sub::var_info[] = { GOBJECT(can_mgr, "CAN_", AP_CANManager), #endif -#if CONFIG_HAL_BOARD == HAL_BOARD_SITL +#if AP_SIM_ENABLED GOBJECT(sitl, "SIM_", SITL::SIM), #endif