AP_Arming: minor format fix

This commit is contained in:
Randy Mackay 2022-12-13 17:39:49 +09:00
parent fd7c4bc841
commit 6bc3fcd294
1 changed files with 6 additions and 6 deletions

View File

@ -549,12 +549,12 @@ 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
char failure_msg[50] = {};
if (!AP::gps().backends_healthy(failure_msg, ARRAY_SIZE(failure_msg))) {
if (failure_msg[0] != '\0') {
check_failed(ARMING_CHECK_GPS, report, "%s", failure_msg);
}
return false;
char failure_msg[50] = {};
if (!AP::gps().backends_healthy(failure_msg, ARRAY_SIZE(failure_msg))) {
if (failure_msg[0] != '\0') {
check_failed(ARMING_CHECK_GPS, report, "%s", failure_msg);
}
return false;
}
for (uint8_t i = 0; i < gps.num_sensors(); i++) {