Browse Source

SITL: prevent initialisation error

master
Andrew Tridgell 11 years ago
parent
commit
bb0eed5c14
  1. 2
      libraries/AP_HAL_AVR_SITL/SITL_State.cpp

2
libraries/AP_HAL_AVR_SITL/SITL_State.cpp

@ -234,7 +234,7 @@ void SITL_State::_timer_handler(int signum) @@ -234,7 +234,7 @@ void SITL_State::_timer_handler(int signum)
static bool in_timer;
if (in_timer || _scheduler->interrupts_are_blocked()){
if (in_timer || _scheduler->interrupts_are_blocked() || _sitl == NULL){
return;
}

Loading…
Cancel
Save