1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-17 02:52:12 +01:00

correct calculation of next scheduling

This commit is contained in:
Corvus Corax 2013-06-27 20:37:37 +02:00
parent cd2cc821d6
commit f5b3318726

View File

@ -299,7 +299,7 @@ static void eventTask()
timeToNextUpdateMs = processPeriodicUpdates();
}
DelayedCallbackSchedule(eventSchedulerCallback, timeToNextUpdateMs, CALLBACK_UPDATEMODE_SOONER);
DelayedCallbackSchedule(eventSchedulerCallback, timeToNextUpdateMs - (xTaskGetTickCount() * portTICK_RATE_MS), CALLBACK_UPDATEMODE_SOONER);
}
/**