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