mirror of https://github.com/ArduPilot/ardupilot
AC_AttitudeControl: correct compilation when GCS library not available
This commit is contained in:
parent
b0b94f50ed
commit
dcebd072be
|
@ -219,7 +219,8 @@ bool AC_WeatherVane::get_yaw_out(float &yaw_output, const int16_t pilot_yaw, con
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!active_msg_sent) {
|
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;
|
active_msg_sent = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue