From 1a08590bb1920b7fb5b488bcb544eb4cc7dbdfee Mon Sep 17 00:00:00 2001 From: Thomas Watson Date: Sun, 22 Sep 2024 11:53:03 -0500 Subject: [PATCH] ArduSub: only send airspeed when enabled Avoids debug message spam about sending an unknown message. --- ArduSub/GCS_Mavlink.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArduSub/GCS_Mavlink.cpp b/ArduSub/GCS_Mavlink.cpp index e93c99f35d..fc2b5c0227 100644 --- a/ArduSub/GCS_Mavlink.cpp +++ b/ArduSub/GCS_Mavlink.cpp @@ -353,7 +353,9 @@ static const ap_message STREAM_RAW_SENSORS_msgs[] = { MSG_SCALED_PRESSURE, MSG_SCALED_PRESSURE2, MSG_SCALED_PRESSURE3, +#if AP_AIRSPEED_ENABLED MSG_AIRSPEED, +#endif }; static const ap_message STREAM_EXTENDED_STATUS_msgs[] = { MSG_SYS_STATUS,