Skip to content

Commit

Permalink
AC_Fence: ensure fencepoint protocol not compiled in if not HAL_GCS_E…
Browse files Browse the repository at this point in the history
…NABLED

also use GCS_SEND_TEXT a bit
  • Loading branch information
peterbarker committed Feb 19, 2024
1 parent 10c44ef commit 6b13a49
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/AC_Fence/AC_Fence_config.h
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 6b13a49

Please sign in to comment.