From 642d15582a77eb2c0355b2b03992ebabeceba679 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sat, 2 Sep 2023 15:21:36 +1000 Subject: [PATCH] AP_WheelEncoder: allow more libraries to compile with no HAL_GCS_ENABLED --- libraries/AP_WheelEncoder/WheelEncoder_Quadrature.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_WheelEncoder/WheelEncoder_Quadrature.cpp b/libraries/AP_WheelEncoder/WheelEncoder_Quadrature.cpp index 518bd26fd7..cb82bef21b 100644 --- a/libraries/AP_WheelEncoder/WheelEncoder_Quadrature.cpp +++ b/libraries/AP_WheelEncoder/WheelEncoder_Quadrature.cpp @@ -34,7 +34,7 @@ void AP_WheelEncoder_Quadrature::update_pin(uint8_t &pin, // remove old gpio event callback if present if (pin != (uint8_t)-1 && !hal.gpio->detach_interrupt(pin)) { - gcs().send_text(MAV_SEVERITY_WARNING, "WEnc: Failed to detach from pin %u", pin); + GCS_SEND_TEXT(MAV_SEVERITY_WARNING, "WEnc: Failed to detach from pin %u", pin); // ignore this failure or the user may be stuck } @@ -51,7 +51,7 @@ void AP_WheelEncoder_Quadrature::update_pin(uint8_t &pin, bool, uint32_t), AP_HAL::GPIO::INTERRUPT_BOTH)) { - gcs().send_text(MAV_SEVERITY_WARNING, "WEnc: Failed to attach to pin %u", pin); + GCS_SEND_TEXT(MAV_SEVERITY_WARNING, "WEnc: Failed to attach to pin %u", pin); } pin_value = hal.gpio->read(pin); }