From 0311aea4a5be1aa7f29e401f0ca2311ce5995ea0 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sat, 2 Sep 2023 15:21:34 +1000 Subject: [PATCH] AC_Fence: allow more libraries to compile with no HAL_GCS_ENABLED --- libraries/AC_Fence/AC_Fence.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AC_Fence/AC_Fence.cpp b/libraries/AC_Fence/AC_Fence.cpp index eea61ea6cc..d2569877d7 100644 --- a/libraries/AC_Fence/AC_Fence.cpp +++ b/libraries/AC_Fence/AC_Fence.cpp @@ -638,7 +638,7 @@ void AC_Fence::record_breach(uint8_t fence_type) // emit a message indicated we're newly-breached, but not too often if (now - _last_breach_notify_sent_ms > 1000) { _last_breach_notify_sent_ms = now; - gcs().send_message(MSG_FENCE_STATUS); + GCS_SEND_MESSAGE(MSG_FENCE_STATUS); } }