From e71baf4a6a4e085beb7ae005e8bbcd7447692dd7 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 3 Oct 2023 20:49:35 +1100 Subject: [PATCH] Rover: don't send fence_status mavlink message if fence not compiled in --- Rover/GCS_Mavlink.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Rover/GCS_Mavlink.cpp b/Rover/GCS_Mavlink.cpp index d2fbf0886b..24a41058cf 100644 --- a/Rover/GCS_Mavlink.cpp +++ b/Rover/GCS_Mavlink.cpp @@ -531,7 +531,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_POSITION_TARGET_GLOBAL_INT, }; static const ap_message STREAM_POSITION_msgs[] = {