From dcebd072be28607f57e687d731fd3cc1f51a5e9d Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 8 Dec 2023 13:10:37 +1100 Subject: [PATCH] AC_AttitudeControl: correct compilation when GCS library not available --- libraries/AC_AttitudeControl/AC_WeatherVane.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/AC_AttitudeControl/AC_WeatherVane.cpp b/libraries/AC_AttitudeControl/AC_WeatherVane.cpp index 087f4b2274..7c0e6b8154 100644 --- a/libraries/AC_AttitudeControl/AC_WeatherVane.cpp +++ b/libraries/AC_AttitudeControl/AC_WeatherVane.cpp @@ -219,7 +219,8 @@ bool AC_WeatherVane::get_yaw_out(float &yaw_output, const int16_t pilot_yaw, con } if (!active_msg_sent) { - gcs().send_text(MAV_SEVERITY_INFO, "Weathervane Active: %s", dir_string); + GCS_SEND_TEXT(MAV_SEVERITY_INFO, "Weathervane Active: %s", dir_string); + (void)dir_string; // in case GCS is disabled active_msg_sent = true; }