diff --git a/libraries/AP_WindVane/AP_WindVane.cpp b/libraries/AP_WindVane/AP_WindVane.cpp index 8b5bfa10bf..6e3e363e91 100644 --- a/libraries/AP_WindVane/AP_WindVane.cpp +++ b/libraries/AP_WindVane/AP_WindVane.cpp @@ -23,6 +23,7 @@ #include "AP_WindVane_SITL.h" #include "AP_WindVane_NMEA.h" +#include #include #include #include @@ -274,11 +275,11 @@ void AP_WindVane::update() } else if (_calibration == 2 && have_speed) { _speed_driver->calibrate(); } else if (_calibration != 0) { - gcs().send_text(MAV_SEVERITY_INFO, "WindVane: driver not found"); + GCS_SEND_TEXT(MAV_SEVERITY_INFO, "WindVane: driver not found"); _calibration.set_and_save(0); } } else if (_calibration != 0) { - gcs().send_text(MAV_SEVERITY_INFO, "WindVane: disarm for cal"); + GCS_SEND_TEXT(MAV_SEVERITY_INFO, "WindVane: disarm for cal"); _calibration.set_and_save(0); }