Skip to content

Commit

Permalink
AC_Fence: Add a value for OUTSIDE FENCE
Browse files Browse the repository at this point in the history
  • Loading branch information
muramura committed Oct 13, 2023
1 parent 8b67775 commit e333a60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/AC_Fence/AC_Fence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,9 @@ bool AC_Fence::pre_arm_check(const char* &fail_msg) const

// check no limits are currently breached
if (_breached_fences) {
fail_msg = "vehicle outside fence";
static char msg[25];
hal.util->snprintf(msg, sizeof(msg), "vehicle outside fence %d", _breached_fences);
fail_msg = msg;
return false;
}

Expand Down

0 comments on commit e333a60

Please sign in to comment.