From 88ed5a308a2c70da4a923b0d6f09c679baf6d2db Mon Sep 17 00:00:00 2001 From: muramura Date: Thu, 12 Sep 2024 00:01:36 +0900 Subject: [PATCH] Sub: Change AC_FENCE_ACTION to an ENUM --- ArduSub/fence.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduSub/fence.cpp b/ArduSub/fence.cpp index 7e895c20da429e..44d8e4cf4c7327 100644 --- a/ArduSub/fence.cpp +++ b/ArduSub/fence.cpp @@ -22,7 +22,7 @@ void Sub::fence_check() if (new_breaches) { // if the user wants some kind of response and motors are armed - if (fence.get_action() != AC_FENCE_ACTION_REPORT_ONLY) { + if (static_cast(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