AP_HAL_SITL: don't use timer_event() that is static from the _scheduler instance

This commit is contained in:
Pierre Kancir 2021-08-13 10:06:02 +02:00 committed by Peter Barker
parent 0d3b1d90b0
commit c91c570814

View File

@ -171,7 +171,7 @@ void SITL_State::_fdm_input_step(void)
if (_update_count == 0 && _sitl != nullptr) { if (_update_count == 0 && _sitl != nullptr) {
_update_gps(0, 0, 0, 0, 0, 0, 0, false); _update_gps(0, 0, 0, 0, 0, 0, 0, false);
_scheduler->timer_event(); HALSITL::Scheduler::timer_event();
_scheduler->sitl_end_atomic(); _scheduler->sitl_end_atomic();
return; return;
} }
@ -195,7 +195,7 @@ void SITL_State::_fdm_input_step(void)
} }
// trigger all APM timers. // trigger all APM timers.
_scheduler->timer_event(); HALSITL::Scheduler::timer_event();
_scheduler->sitl_end_atomic(); _scheduler->sitl_end_atomic();
} }