From 0e742fe51c5e06a6461cd2e45119337b6f699b14 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 15 Feb 2024 11:40:28 +1100 Subject: [PATCH] AC_Fence: ensure fencepoint protocol not compiled in if not HAL_GCS_ENABLED also use GCS_SEND_TEXT a bit --- libraries/AC_Fence/AC_Fence_config.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/AC_Fence/AC_Fence_config.h b/libraries/AC_Fence/AC_Fence_config.h index dbc607afa7..4abb471eac 100644 --- a/libraries/AC_Fence/AC_Fence_config.h +++ b/libraries/AC_Fence/AC_Fence_config.h @@ -2,6 +2,8 @@ #include +#include + // Enabled 0 is compiled out // Enabled 1 is always enabled on all vehicles // Enabled 2 is enabled with dummy methods for tracker and blimp @@ -11,5 +13,5 @@ #endif #ifndef AC_POLYFENCE_FENCE_POINT_PROTOCOL_SUPPORT -#define AC_POLYFENCE_FENCE_POINT_PROTOCOL_SUPPORT AP_FENCE_ENABLED +#define AC_POLYFENCE_FENCE_POINT_PROTOCOL_SUPPORT HAL_GCS_ENABLED && AP_FENCE_ENABLED #endif