From 0bcda3c57e69317f98652291ceb7bd7d0d58ae7c Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 11 Oct 2021 12:12:20 +1100 Subject: [PATCH] AP_Vehicle: split AP_HAL_SITL and AP_SIM_ENABLED --- libraries/AP_Vehicle/AP_Vehicle.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libraries/AP_Vehicle/AP_Vehicle.h b/libraries/AP_Vehicle/AP_Vehicle.h index 8cc1a3ed7a..58392ff97a 100644 --- a/libraries/AP_Vehicle/AP_Vehicle.h +++ b/libraries/AP_Vehicle/AP_Vehicle.h @@ -48,9 +48,7 @@ #include #include #include -#if CONFIG_HAL_BOARD == HAL_BOARD_SITL #include -#endif #include class AP_Vehicle : public AP_HAL::HAL::Callbacks { @@ -393,7 +391,7 @@ protected: ModeReason control_mode_reason = ModeReason::UNKNOWN; -#if CONFIG_HAL_BOARD == HAL_BOARD_SITL +#if AP_SIM_ENABLED SITL::SIM sitl; #endif