AP_Arming: minor format fix

This commit is contained in:
Randy Mackay 2022-12-13 17:39:49 +09:00 committed by Andrew Tridgell
parent 4cf9c34187
commit c8c49d060b

View File

@ -545,12 +545,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++) {