AC_AttitudeControl: correct compilation when GCS library not available

This commit is contained in:
Peter Barker 2023-12-08 13:10:37 +11:00 committed by Andrew Tridgell
parent b0b94f50ed
commit dcebd072be
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}