Blimp: correct compilation when fence compiled out

This commit is contained in:
Peter Barker 2024-01-12 16:49:52 +11:00 committed by Peter Barker
parent 30146affa5
commit 79eeb7b461
1 changed files with 4 additions and 2 deletions

View File

@ -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)