AC_Fence: ensure fencepoint protocol not compiled in if not HAL_GCS_ENABLED

also use GCS_SEND_TEXT a bit
This commit is contained in:
Peter Barker 2024-02-15 11:40:28 +11:00 committed by Andrew Tridgell
parent f6d0f52876
commit 0e742fe51c
1 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,8 @@
#include <AP_HAL/AP_HAL_Boards.h>
#include <GCS_MAVLink/GCS_config.h>
// 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