ArduPlane: use check_enabled helper

This commit is contained in:
Iampete1 2023-01-21 13:23:07 +00:00 committed by Randy Mackay
parent 001eb20fc3
commit 342d6f21be
1 changed files with 1 additions and 2 deletions

View File

@ -229,8 +229,7 @@ bool AP_Arming_Plane::ins_checks(bool display_failure)
}
// additional plane specific checks
if ((checks_to_perform & ARMING_CHECK_ALL) ||
(checks_to_perform & ARMING_CHECK_INS)) {
if (check_enabled(ARMING_CHECK_INS)) {
char failure_msg[50] = {};
if (!AP::ahrs().pre_arm_check(true, failure_msg, sizeof(failure_msg))) {
check_failed(ARMING_CHECK_INS, display_failure, "AHRS: %s", failure_msg);