mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
HAL_PX4: use write() in panic()
this allows panic from the UARTDriver
This commit is contained in:
parent
ac7117245a
commit
1e69b88261
@ -183,9 +183,8 @@ void PX4Scheduler::_timer_event(void *arg)
|
||||
}
|
||||
|
||||
void PX4Scheduler::panic(const prog_char_t *errormsg) {
|
||||
hal.console->println_P(errormsg);
|
||||
hal.scheduler->usleep(10000);
|
||||
fflush(stdout);
|
||||
write(1, errormsg, strlen(errormsg));
|
||||
hal.scheduler->delay_microseconds(10000);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user