From 3942ee08111b4ae341f9e9c58e590fe329cd1767 Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Fri, 4 Mar 2022 16:38:29 +0000 Subject: [PATCH] AP_Landing: fix complation without fence --- libraries/AP_Landing/AP_Landing.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Landing/AP_Landing.cpp b/libraries/AP_Landing/AP_Landing.cpp index 64179e3c11..ccbdf740e5 100644 --- a/libraries/AP_Landing/AP_Landing.cpp +++ b/libraries/AP_Landing/AP_Landing.cpp @@ -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();