mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
Track state execution time for OSD, baro, rx and GPS tasks and inform scheduler of next state execution time
This commit is contained in:
parent
a63172cc1f
commit
ab1baccc66
44 changed files with 1392 additions and 721 deletions
|
@ -1066,8 +1066,8 @@ static void applyStatusProfile(timeUs_t now) {
|
|||
}
|
||||
|
||||
if (!timActive) {
|
||||
// Call ignoreTaskShortExecTime() unless data is being processed
|
||||
ignoreTaskShortExecTime();
|
||||
// Call ignoreTaskExecTime() unless data is being processed
|
||||
ignoreTaskExecTime();
|
||||
return; // no change this update, keep old state
|
||||
}
|
||||
|
||||
|
@ -1253,8 +1253,8 @@ void ledStripUpdate(timeUs_t currentTimeUs)
|
|||
#endif
|
||||
|
||||
if (!isWS2811LedStripReady()) {
|
||||
// Call ignoreTaskShortExecTime() unless data is being processed
|
||||
ignoreTaskShortExecTime();
|
||||
// Call ignoreTaskExecTime() unless data is being processed
|
||||
ignoreTaskExecTime();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1282,8 +1282,8 @@ void ledStripUpdate(timeUs_t currentTimeUs)
|
|||
break;
|
||||
}
|
||||
} else {
|
||||
// Call ignoreTaskShortExecTime() unless data is being processed
|
||||
ignoreTaskShortExecTime();
|
||||
// Call ignoreTaskExecTime() unless data is being processed
|
||||
ignoreTaskExecTime();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue