mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
ArduSub: use check_enabled helper
This commit is contained in:
parent
342d6f21be
commit
ff6c3f8889
@ -63,8 +63,7 @@ bool AP_Arming_Sub::ins_checks(bool display_failure)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// additional sub-specific checks
|
// additional sub-specific checks
|
||||||
if ((checks_to_perform & ARMING_CHECK_ALL) ||
|
if (check_enabled(ARMING_CHECK_INS)) {
|
||||||
(checks_to_perform & ARMING_CHECK_INS)) {
|
|
||||||
char failure_msg[50] = {};
|
char failure_msg[50] = {};
|
||||||
if (!AP::ahrs().pre_arm_check(false, failure_msg, sizeof(failure_msg))) {
|
if (!AP::ahrs().pre_arm_check(false, failure_msg, sizeof(failure_msg))) {
|
||||||
check_failed(ARMING_CHECK_INS, display_failure, "AHRS: %s", failure_msg);
|
check_failed(ARMING_CHECK_INS, display_failure, "AHRS: %s", failure_msg);
|
||||||
|
Loading…
Reference in New Issue
Block a user