diff --git a/libraries/AC_Fence/AC_Fence.cpp b/libraries/AC_Fence/AC_Fence.cpp index e28ad0b6e23964..f3b0d25a6ab79b 100644 --- a/libraries/AC_Fence/AC_Fence.cpp +++ b/libraries/AC_Fence/AC_Fence.cpp @@ -344,6 +344,8 @@ uint8_t AC_Fence::get_auto_disable_fences(void) const auto_disable = _auto_enable_mask & AC_FENCE_TYPE_ALT_MIN; break; default: + // when auto disable is not set we still need to disable the altmin fence on landing + auto_disable = AC_FENCE_TYPE_ALT_MIN; break; } return auto_disable;