From 342d6f21be2ab35732e96fbe33142e52c673493c Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Sat, 21 Jan 2023 13:23:07 +0000 Subject: [PATCH] ArduPlane: use check_enabled helper --- ArduPlane/AP_Arming.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ArduPlane/AP_Arming.cpp b/ArduPlane/AP_Arming.cpp index 49d91b9365..5fff06fcfe 100644 --- a/ArduPlane/AP_Arming.cpp +++ b/ArduPlane/AP_Arming.cpp @@ -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);