From 79eeb7b46162d948a93b7a20de162f78243bc0d0 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 12 Jan 2024 16:49:52 +1100 Subject: [PATCH] Blimp: correct compilation when fence compiled out --- Blimp/AP_Arming.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Blimp/AP_Arming.cpp b/Blimp/AP_Arming.cpp index 23ba7790f9..adbc072e4b 100644 --- a/Blimp/AP_Arming.cpp +++ b/Blimp/AP_Arming.cpp @@ -29,8 +29,10 @@ bool AP_Arming_Blimp::run_pre_arm_checks(bool display_failure) return mandatory_checks(display_failure); } - return fence_checks(display_failure) - & parameter_checks(display_failure) + return parameter_checks(display_failure) +#if AP_FENCE_ENABLED + & fence_checks(display_failure) +#endif & motor_checks(display_failure) & gcs_failsafe_check(display_failure) & alt_checks(display_failure)