AP_InternalError: remove leading comma in descriptive string

"i" just looks so likely....
This commit is contained in:
Peter Barker 2020-07-01 11:18:06 +10:00 committed by Peter Barker
parent 653714ce29
commit 4527321035
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ void AP_InternalError::errors_as_string(uint8_t *buffer, const uint16_t len) con
} }
if (internal_errors & (1U<<i)) { if (internal_errors & (1U<<i)) {
const char *format; const char *format;
if (i == 0) { if (buffer_used == 0) {
format = "%s"; format = "%s";
} else { } else {
format = ",%s"; format = ",%s";