HAL_SITL: flush stdout on panic

This commit is contained in:
Andrew Tridgell 2016-11-17 17:06:22 +11:00
parent fc21e0f16f
commit 7ba957b946
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@ void panic(const char *errormsg, ...)
{ {
va_list ap; va_list ap;
fflush(stdout);
va_start(ap, errormsg); va_start(ap, errormsg);
vprintf(errormsg, ap); vprintf(errormsg, ap);
va_end(ap); va_end(ap);