mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 08:38:36 -04:00
AP_HAL_Linux: extended panic handling with RCInput deinitialization
The issue has already come up. There's no deinitialization mechanisms at the moment. As APM is rather software than firmware on Linux, there're some clean-up work that needs to be done. This commit triggers deinitialization of RCInput on a panic.
This commit is contained in:
parent
97b51a4bcb
commit
f4d14f73ba
@ -394,6 +394,7 @@ void LinuxScheduler::panic(const prog_char_t *errormsg)
|
||||
{
|
||||
write(1, errormsg, strlen(errormsg));
|
||||
write(1, "\n", 1);
|
||||
hal.rcin->deinit();
|
||||
hal.scheduler->delay_microseconds(10000);
|
||||
exit(1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user