From 705f2102de559811a4ab53a17edd860b4e461b1b Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 3 Oct 2023 20:49:35 +1100 Subject: [PATCH] Blimp: don't send fence_status mavlink message if fence not compiled in --- Blimp/GCS_Mavlink.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Blimp/GCS_Mavlink.cpp b/Blimp/GCS_Mavlink.cpp index 512d9f6446..78442c9aaa 100644 --- a/Blimp/GCS_Mavlink.cpp +++ b/Blimp/GCS_Mavlink.cpp @@ -323,7 +323,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[] = {