mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
HAL_SITL: don't run IO procs in examples
This commit is contained in:
parent
d0cec297a8
commit
a74dab8c0a
@ -301,7 +301,7 @@ void Scheduler::_run_io_procs()
|
|||||||
void Scheduler::stop_clock(uint64_t time_usec)
|
void Scheduler::stop_clock(uint64_t time_usec)
|
||||||
{
|
{
|
||||||
_stopped_clock_usec = time_usec;
|
_stopped_clock_usec = time_usec;
|
||||||
if (time_usec - _last_io_run > 10000) {
|
if (_sitlState->_sitl != nullptr && time_usec - _last_io_run > 10000) {
|
||||||
_last_io_run = time_usec;
|
_last_io_run = time_usec;
|
||||||
_run_io_procs();
|
_run_io_procs();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user