mirror of https://github.com/ArduPilot/ardupilot
HAL_SITL: added support for exit on panic()
used by autotest server
This commit is contained in:
parent
35d4555be0
commit
02403d9b93
|
@ -31,6 +31,11 @@ void panic(const char *errormsg, ...)
|
|||
va_end(ap);
|
||||
printf("\n");
|
||||
|
||||
if (getenv("SITL_PANIC_EXIT")) {
|
||||
// this is used on the autotest server to prevent us waiting
|
||||
// 10 hours for a timeout
|
||||
exit(1);
|
||||
}
|
||||
for(;;);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue