mirror of https://github.com/ArduPilot/ardupilot
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