mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Arming: tidy pre_arm_checks
This commit is contained in:
parent
bac008d51c
commit
3e57edf37c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user