mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
parent
23532bf45c
commit
ee6969939b
@ -147,7 +147,7 @@ void Sub::loop()
|
||||
// the first call to the scheduler they won't run on a later
|
||||
// call until scheduler.tick() is called again
|
||||
uint32_t time_available = (timer + MAIN_LOOP_MICROS) - micros();
|
||||
scheduler.run(time_available);
|
||||
scheduler.run(time_available > MAIN_LOOP_MICROS ? 0u : time_available);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user