From 23b7e0f64dd7bcc2cb0dd307409b83a259337c57 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 7 Aug 2024 13:17:21 +1000 Subject: [PATCH] AP_HAL_ChibiOS: use GCS_SEND_TEXT rather than gcs().send_text Co-authored-by: muramura --- libraries/AP_HAL_ChibiOS/Util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL_ChibiOS/Util.cpp b/libraries/AP_HAL_ChibiOS/Util.cpp index a6d802ea64..5b6e705735 100644 --- a/libraries/AP_HAL_ChibiOS/Util.cpp +++ b/libraries/AP_HAL_ChibiOS/Util.cpp @@ -269,7 +269,7 @@ uint64_t Util::get_hw_rtc() const #if HAL_GCS_ENABLED #include -#define Debug(fmt, args ...) do { gcs().send_text(MAV_SEVERITY_INFO, fmt, ## args); } while (0) +#define Debug(fmt, args ...) do { GCS_SEND_TEXT(MAV_SEVERITY_INFO, fmt, ## args); } while (0) #endif // HAL_GCS_ENABLED #ifndef Debug