Browse Source

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.
mission-4.1.18
Víctor Mayoral Vilches 10 years ago committed by Andrew Tridgell
parent
commit
ce4c4c43dc
  1. 2
      libraries/AP_HAL_Linux/Scheduler.cpp

2
libraries/AP_HAL_Linux/Scheduler.cpp

@ -384,7 +384,7 @@ void LinuxScheduler::system_initialized() @@ -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…
Cancel
Save