mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 06:51:36 +08:00
Scheduler: spin deadline computation fix
This commit is contained in:
@@ -132,7 +132,7 @@ MonotonicTime Scheduler::computeDispatcherSpinDeadline(MonotonicTime spin_deadli
|
|||||||
const MonotonicTime ts = getMonotonicTime();
|
const MonotonicTime ts = getMonotonicTime();
|
||||||
if (earliest > ts)
|
if (earliest > ts)
|
||||||
{
|
{
|
||||||
if (ts - earliest > deadline_resolution_)
|
if (earliest - ts > deadline_resolution_)
|
||||||
{
|
{
|
||||||
return ts + deadline_resolution_;
|
return ts + deadline_resolution_;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user