From 5db0eecb99c8ba5f89f0bbd607271c4e398eea91 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 7 Aug 2024 13:17:19 +1000 Subject: [PATCH] AC_Fence: use GCS_SEND_TEXT rather than gcs().send_text Co-authored-by: muramura --- libraries/AC_Fence/AC_Fence.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AC_Fence/AC_Fence.cpp b/libraries/AC_Fence/AC_Fence.cpp index 7d4f6003e4..db214b2e49 100644 --- a/libraries/AC_Fence/AC_Fence.cpp +++ b/libraries/AC_Fence/AC_Fence.cpp @@ -617,7 +617,7 @@ bool AC_Fence::auto_enable_fence_floor() // check if we are over the altitude fence if (!floor_enabled() && _curr_alt >= _alt_min + _margin) { enable(true, AC_FENCE_TYPE_ALT_MIN, false); - gcs().send_text(MAV_SEVERITY_NOTICE, "Min Alt fence enabled (auto enable)"); + GCS_SEND_TEXT(MAV_SEVERITY_NOTICE, "Min Alt fence enabled (auto enable)"); return true; } @@ -864,7 +864,7 @@ void AC_Fence::manual_recovery_start() // record time pilot began manual recovery _manual_recovery_start_ms = AP_HAL::millis(); - gcs().send_text(MAV_SEVERITY_INFO, "Manual recovery started"); + GCS_SEND_TEXT(MAV_SEVERITY_INFO, "Manual recovery started"); } // methods for mavlink SYS_STATUS message (send_sys_status)