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