From 6cfc6f56cb2e0594435b5c779d649fd91d4ea321 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 25 Oct 2023 12:15:02 +1100 Subject: [PATCH] Blimp: remove MSG_BATTERY_STATUS from steams if AP_BATTERY_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 a69f36881c..21096c5bfd 100644 --- a/Blimp/GCS_Mavlink.cpp +++ b/Blimp/GCS_Mavlink.cpp @@ -352,7 +352,9 @@ static const ap_message STREAM_EXTRA3_msgs[] = { MSG_WIND, MSG_RANGEFINDER, MSG_DISTANCE_SENSOR, +#if AP_BATTERY_ENABLED MSG_BATTERY_STATUS, +#endif MSG_GIMBAL_DEVICE_ATTITUDE_STATUS, MSG_OPTICAL_FLOW, #if COMPASS_CAL_ENABLED