From c3e5ea0b0ff1577a7b17cd155d97a7378670a067 Mon Sep 17 00:00:00 2001 From: Peter Barker <pbarker@barker.dropbear.id.au> Date: Wed, 25 Oct 2023 12:15:02 +1100 Subject: [PATCH] ArduSub: remove MSG_BATTERY_STATUS from steams if AP_BATTERY_ENABLED is false --- ArduSub/GCS_Mavlink.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArduSub/GCS_Mavlink.cpp b/ArduSub/GCS_Mavlink.cpp index 4bc904184e..15d4c4621a 100644 --- a/ArduSub/GCS_Mavlink.cpp +++ b/ArduSub/GCS_Mavlink.cpp @@ -385,7 +385,9 @@ static const ap_message STREAM_EXTRA3_msgs[] = { #if AP_TERRAIN_AVAILABLE MSG_TERRAIN, #endif +#if AP_BATTERY_ENABLED MSG_BATTERY_STATUS, +#endif MSG_GIMBAL_DEVICE_ATTITUDE_STATUS, MSG_OPTICAL_FLOW, #if COMPASS_CAL_ENABLED