AP_Landing: fix complation without fence

This commit is contained in:
Iampete1 2022-03-04 16:38:29 +00:00 committed by Andrew Tridgell
parent df3affc38c
commit 3942ee0811

View File

@ -267,11 +267,12 @@ 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
AC_Fence *fence = AP::fence();
if (fence) {
fence->auto_enable_fence_after_takeoff();
}
#endif
}
Log();