From 5c10db1e0ceaf931916f5d4380a2e05dc0362e89 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 3 Oct 2023 20:49:34 +1100 Subject: [PATCH] ArduSub: don't send fence_status mavlink message if fence not compiled in --- ArduSub/GCS_Mavlink.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArduSub/GCS_Mavlink.cpp b/ArduSub/GCS_Mavlink.cpp index 75cf28f88b..0077bb4cbe 100644 --- a/ArduSub/GCS_Mavlink.cpp +++ b/ArduSub/GCS_Mavlink.cpp @@ -354,7 +354,9 @@ static const ap_message STREAM_EXTENDED_STATUS_msgs[] = { MSG_GPS2_RAW, MSG_GPS2_RTK, MSG_NAV_CONTROLLER_OUTPUT, +#if AP_FENCE_ENABLED MSG_FENCE_STATUS, +#endif MSG_NAMED_FLOAT }; static const ap_message STREAM_POSITION_msgs[] = {