mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
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:
parent
ce4da9b09c
commit
ce4c4c43dc
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user