HAL_PX4: format panic messages with a newline

This commit is contained in:
Andrew Tridgell 2013-01-23 16:54:26 +11:00
parent c9799fb2b7
commit 966b9b9b9c

View File

@ -190,6 +190,7 @@ void *PX4Scheduler::_timer_thread(void)
void PX4Scheduler::panic(const prog_char_t *errormsg)
{
write(1, errormsg, strlen(errormsg));
write(1, "\n", 1);
hal.scheduler->delay_microseconds(10000);
_px4_thread_should_exit = true;
exit(1);