1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-14 20:10:18 +03:00

Cleaned up the scheduler.

This commit is contained in:
mikeller 2020-03-15 13:28:30 +13:00
parent b729c3cc99
commit db4bd1f186
20 changed files with 326 additions and 392 deletions

View file

@ -157,8 +157,8 @@ void processRcStickPositions()
}
}
if (stTmp == rcSticks) {
if (rcDelayMs <= INT16_MAX - (getTaskDeltaTime(TASK_SELF) / 1000)) {
rcDelayMs += getTaskDeltaTime(TASK_SELF) / 1000;
if (rcDelayMs <= INT16_MAX - (getTaskDeltaTimeUs(TASK_SELF) / 1000)) {
rcDelayMs += getTaskDeltaTimeUs(TASK_SELF) / 1000;
}
} else {
rcDelayMs = 0;