From fc9f47b0e38140b44284501535f748ce1061a002 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 25 Oct 2023 12:15:02 +1100 Subject: [PATCH] Rover: remove MSG_BATTERY_STATUS from steams if AP_BATTERY_ENABLED is false --- Rover/GCS_Mavlink.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Rover/GCS_Mavlink.cpp b/Rover/GCS_Mavlink.cpp index 24a41058cf756a..a7f01fd54b336f 100644 --- a/Rover/GCS_Mavlink.cpp +++ b/Rover/GCS_Mavlink.cpp @@ -563,7 +563,9 @@ static const ap_message STREAM_EXTRA3_msgs[] = { MSG_RANGEFINDER, MSG_DISTANCE_SENSOR, MSG_SYSTEM_TIME, +#if AP_BATTERY_ENABLED MSG_BATTERY_STATUS, +#endif MSG_GIMBAL_DEVICE_ATTITUDE_STATUS, MSG_OPTICAL_FLOW, #if COMPASS_CAL_ENABLED