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