From 20563bf58da0e1f0296705a252628ae40eee6d6e Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 25 Oct 2023 12:42:16 +1100 Subject: [PATCH] ArduCopter: save bytes when AP_AIS_ENABLED is false --- ArduCopter/GCS_Mavlink.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArduCopter/GCS_Mavlink.cpp b/ArduCopter/GCS_Mavlink.cpp index 770748e964..dbd0ca73a0 100644 --- a/ArduCopter/GCS_Mavlink.cpp +++ b/ArduCopter/GCS_Mavlink.cpp @@ -569,7 +569,9 @@ static const ap_message STREAM_PARAMS_msgs[] = { }; static const ap_message STREAM_ADSB_msgs[] = { MSG_ADSB_VEHICLE, +#if AP_AIS_ENABLED MSG_AIS_VESSEL, +#endif }; const struct GCS_MAVLINK::stream_entries GCS_MAVLINK::all_stream_entries[] = {