mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-24 01:28:29 -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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if AC_FENCE == ENABLED
|
||||||
// check fence is initialised
|
// check fence is initialised
|
||||||
if(!fence.pre_arm_check()) {
|
if(!fence.pre_arm_check()) {
|
||||||
if (display_failure) {
|
if (display_failure) {
|
||||||
@ -330,6 +331,7 @@ static bool pre_arm_checks(bool display_failure)
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// check INS
|
// check INS
|
||||||
if ((g.arming_check == ARMING_CHECK_ALL) || (g.arming_check & ARMING_CHECK_INS)) {
|
if ((g.arming_check == ARMING_CHECK_ALL) || (g.arming_check & ARMING_CHECK_INS)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user