From ff6c3f8889558256b6d9dca0584925ebe4eeafbb Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Sat, 21 Jan 2023 13:23:07 +0000 Subject: [PATCH] ArduSub: use check_enabled helper --- ArduSub/AP_Arming_Sub.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ArduSub/AP_Arming_Sub.cpp b/ArduSub/AP_Arming_Sub.cpp index f3edcbec7d..7eb1589a81 100644 --- a/ArduSub/AP_Arming_Sub.cpp +++ b/ArduSub/AP_Arming_Sub.cpp @@ -63,8 +63,7 @@ bool AP_Arming_Sub::ins_checks(bool display_failure) } // additional sub-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(false, failure_msg, sizeof(failure_msg))) { check_failed(ARMING_CHECK_INS, display_failure, "AHRS: %s", failure_msg);