Copter: fix compile error when fence disabled

Fix provided by iyia12co
This commit is contained in:
Randy Mackay 2015-02-12 12:03:54 +09:00
parent 75cd41a7c1
commit a4fd36a775

View File

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