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:
Staroselskii Georgii 2015-07-07 01:50:56 +03:00 committed by Andrew Tridgell
parent 97b51a4bcb
commit f4d14f73ba

View File

@ -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);
}