AP_HAL_ChibiOS: print linefeed after panic message

this makes the output much nicer and avoids including the linefeed in the caller
This commit is contained in:
Peter Barker 2024-12-13 10:34:11 +11:00 committed by Peter Barker
parent dc6c799dad
commit 72f56ee8fc
1 changed files with 1 additions and 0 deletions

View File

@ -335,6 +335,7 @@ void panic(const char *errormsg, ...)
va_start(ap, errormsg); va_start(ap, errormsg);
vprintf(errormsg, ap); vprintf(errormsg, ap);
va_end(ap); va_end(ap);
printf("\n");
hal.scheduler->delay(delay_ms); hal.scheduler->delay(delay_ms);
delay_ms = 500; delay_ms = 500;
} }