AP_Arming: remove redundant checks_to_perform check

This is identical to the check just above it
This commit is contained in:
Peter Barker 2021-08-17 18:56:14 +10:00 committed by Randy Mackay
parent 066ad0f8da
commit 5613610641

View File

@ -480,8 +480,6 @@ bool AP_Arming::gps_checks(bool report)
if ((checks_to_perform & ARMING_CHECK_ALL) || (checks_to_perform & ARMING_CHECK_GPS)) {
// Any failure messages from GPS backends
if ((checks_to_perform & ARMING_CHECK_ALL) ||
(checks_to_perform & ARMING_CHECK_GPS)) {
char failure_msg[50] = {};
if (!AP::gps().backends_healthy(failure_msg, ARRAY_SIZE(failure_msg))) {
if (failure_msg[0] != '\0') {
@ -489,7 +487,6 @@ bool AP_Arming::gps_checks(bool report)
}
return false;
}
}
//GPS OK?
if (!AP::ahrs().home_is_set() ||