From ec5eb88217093e88f7d432ad0bc8fd2493a925c3 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 7 Aug 2024 13:17:19 +1000 Subject: [PATCH] AP_Baro: use GCS_SEND_TEXT rather than gcs().send_text Co-authored-by: muramura --- libraries/AP_Baro/AP_Baro.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Baro/AP_Baro.cpp b/libraries/AP_Baro/AP_Baro.cpp index 9c6c68f5a3..8a2e2ebbda 100644 --- a/libraries/AP_Baro/AP_Baro.cpp +++ b/libraries/AP_Baro/AP_Baro.cpp @@ -261,7 +261,7 @@ const AP_Param::GroupInfo AP_Baro::var_info[] = { AP_Baro *AP_Baro::_singleton; #if HAL_GCS_ENABLED -#define BARO_SEND_TEXT(severity, format, args...) gcs().send_text(severity, format, ##args) +#define BARO_SEND_TEXT(severity, format, args...) GCS_SEND_TEXT(severity, format, ##args) #else #define BARO_SEND_TEXT(severity, format, args...) #endif