From 694570b9035fa68dde37fecd917261cabd3a084e Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sun, 18 May 2025 15:37:40 +1000 Subject: [PATCH] ArduSub: use enum class for AC breach action enumeration --- ArduSub/fence.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduSub/fence.cpp b/ArduSub/fence.cpp index f75bddb4c55..b21554e8e38 100644 --- a/ArduSub/fence.cpp +++ b/ArduSub/fence.cpp @@ -25,7 +25,7 @@ void Sub::fence_checks_async() // if the user wants some kind of response and motors are armed if (new_breaches) { - if (fence.get_action() != AC_FENCE_ACTION_REPORT_ONLY) { + if (fence.get_action() != AC_Fence::Action::REPORT_ONLY) { // // // disarm immediately if we think we are on the ground or in a manual flight mode with zero throttle // // don't disarm if the high-altitude fence has been broken because it's likely the user has pulled their throttle to zero to bring it down