mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
Copter: fix compile error when fence disabled
Fix provided by iyia12co
This commit is contained in:
parent
75cd41a7c1
commit
a4fd36a775
@ -323,6 +323,7 @@ static bool pre_arm_checks(bool display_failure)
|
||||
return false;
|
||||
}
|
||||
|
||||
#if AC_FENCE == ENABLED
|
||||
// check fence is initialised
|
||||
if(!fence.pre_arm_check()) {
|
||||
if (display_failure) {
|
||||
@ -330,6 +331,7 @@ static bool pre_arm_checks(bool display_failure)
|
||||
}
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
// check INS
|
||||
if ((g.arming_check == ARMING_CHECK_ALL) || (g.arming_check & ARMING_CHECK_INS)) {
|
||||
|
Loading…
Reference in New Issue
Block a user