Skip to content

Commit

Permalink
Sub: Change AC_FENCE_ACTION to an ENUM
Browse files Browse the repository at this point in the history
  • Loading branch information
muramura committed Sep 11, 2024
1 parent 93126b2 commit 88ed5a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ArduSub/fence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<AC_FENCE_ACTION>(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
Expand Down

0 comments on commit 88ed5a3

Please sign in to comment.