From 7c25fe29b9439949cb540a29dc7f7cb2dc7dc614 Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Thu, 29 Feb 2024 15:57:37 +0000 Subject: [PATCH] Blimp: don't try and send MSG_RANGEFINDER if AP_RANGEFINDER_ENABLED is false --- Blimp/GCS_Mavlink.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Blimp/GCS_Mavlink.cpp b/Blimp/GCS_Mavlink.cpp index 296c9940fe..d230f99471 100644 --- a/Blimp/GCS_Mavlink.cpp +++ b/Blimp/GCS_Mavlink.cpp @@ -357,7 +357,9 @@ static const ap_message STREAM_EXTRA3_msgs[] = { MSG_AHRS, MSG_SYSTEM_TIME, MSG_WIND, +#if AP_RANGEFINDER_ENABLED MSG_RANGEFINDER, +#endif MSG_DISTANCE_SENSOR, #if AP_BATTERY_ENABLED MSG_BATTERY_STATUS,