AP_Arming: tidy pre_arm_checks

This commit is contained in:
Peter Barker 2024-05-22 14:29:39 +10:00 committed by Andrew Tridgell
parent bac008d51c
commit 3e57edf37c
1 changed files with 1 additions and 1 deletions

View File

@ -603,7 +603,7 @@ bool AP_Arming::gps_checks(bool report)
// Any failure messages from GPS backends
char failure_msg[50] = {};
if (!AP::gps().backends_healthy(failure_msg, ARRAY_SIZE(failure_msg))) {
if (!AP::gps().pre_arm_checks(failure_msg, ARRAY_SIZE(failure_msg))) {
if (failure_msg[0] != '\0') {
check_failed(ARMING_CHECK_GPS, report, "%s", failure_msg);
}