mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-29 14:52:12 +01:00
correct calculation of next scheduling
This commit is contained in:
parent
cd2cc821d6
commit
f5b3318726
@ -299,7 +299,7 @@ static void eventTask()
|
|||||||
timeToNextUpdateMs = processPeriodicUpdates();
|
timeToNextUpdateMs = processPeriodicUpdates();
|
||||||
}
|
}
|
||||||
|
|
||||||
DelayedCallbackSchedule(eventSchedulerCallback, timeToNextUpdateMs, CALLBACK_UPDATEMODE_SOONER);
|
DelayedCallbackSchedule(eventSchedulerCallback, timeToNextUpdateMs - (xTaskGetTickCount() * portTICK_RATE_MS), CALLBACK_UPDATEMODE_SOONER);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user