AP_HAL_Linux: Scheduler reboot fix

exit from the autpilot when reboot is commanded.
The software assumes that the code is being
launched in an infinite loop thereby an exit
will make it reboot.
This commit is contained in:
Víctor Mayoral Vilches 2014-10-19 18:40:08 -07:00 committed by Andrew Tridgell
parent ce4da9b09c
commit ce4c4c43dc

View File

@ -384,7 +384,7 @@ void LinuxScheduler::system_initialized()
void LinuxScheduler::reboot(bool hold_in_bootloader)
{
for(;;);
exit(1);
}
void LinuxScheduler::stop_clock(uint64_t time_usec)