mirror of https://github.com/ArduPilot/ardupilot
AP_InternalError: remove leading comma in descriptive string
"i" just looks so likely....
This commit is contained in:
parent
653714ce29
commit
4527321035
|
@ -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";
|
||||||
|
|
Loading…
Reference in New Issue