AP_Landing: change AC_FENCE to AP_FENCE_ENABLED

This commit is contained in:
Iampete1 2022-07-19 12:33:12 +01:00 committed by Andrew Tridgell
parent ad59c62899
commit 380d174e32
1 changed files with 1 additions and 1 deletions

View File

@ -267,7 +267,7 @@ bool AP_Landing::verify_abort_landing(const Location &prev_WP_loc, Location &nex
mission.resume();
}
// else we're in AUTO with a stopped mission and handle_auto_mode() will set RTL
#if AC_FENCE
#if AP_FENCE_ENABLED
AC_Fence *fence = AP::fence();
if (fence) {
fence->auto_enable_fence_after_takeoff();