mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
SITL: fixed SITL for example sketches
cope with no SITL object
This commit is contained in:
parent
9e731550fd
commit
c5e4e8f035
@ -209,7 +209,7 @@ void SITLScheduler::system_initialized() {
|
||||
panic(
|
||||
PSTR("PANIC: scheduler system initialized called more than once"));
|
||||
}
|
||||
if (_sitlState->_sitl->float_exception) {
|
||||
if (_sitlState->_sitl == NULL || _sitlState->_sitl->float_exception) {
|
||||
feenableexcept(FE_INVALID | FE_OVERFLOW | FE_DIVBYZERO);
|
||||
} else {
|
||||
feclearexcept(FE_INVALID | FE_OVERFLOW | FE_DIVBYZERO);
|
||||
|
Loading…
Reference in New Issue
Block a user