From 1d4c181d175a6eed19af52ffb4edf802cf3ce480 Mon Sep 17 00:00:00 2001 From: Thomas Watson Date: Sun, 22 Sep 2024 11:53:03 -0500 Subject: [PATCH] ArduPlane: only send airspeed when enabled Avoids debug message spam about sending an unknown message. --- ArduPlane/GCS_Mavlink.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArduPlane/GCS_Mavlink.cpp b/ArduPlane/GCS_Mavlink.cpp index cfd7b7a71a..12f2704ec7 100644 --- a/ArduPlane/GCS_Mavlink.cpp +++ b/ArduPlane/GCS_Mavlink.cpp @@ -614,7 +614,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,