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:
parent
b729c3cc99
commit
db4bd1f186
20 changed files with 326 additions and 392 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue