From a638060ce53a65bec092b51d12235c6be23ad264 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 22 Sep 2022 07:21:36 +1000 Subject: [PATCH] AP_Windvane: correct compilation for header changes --- libraries/AP_WindVane/AP_WindVane.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); }