mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
currentTime passed in scheduler task call
This commit is contained in:
parent
7122689038
commit
2f9ca4355c
21 changed files with 134 additions and 125 deletions
|
@ -925,7 +925,7 @@ static applyLayerFn_timed* layerTable[] = {
|
|||
[timRing] = &applyLedThrustRingLayer
|
||||
};
|
||||
|
||||
void updateLedStrip(void)
|
||||
void updateLedStrip(uint32_t currentTime)
|
||||
{
|
||||
if (!(ledStripInitialised && isWS2811LedStripReady())) {
|
||||
return;
|
||||
|
@ -940,7 +940,7 @@ void updateLedStrip(void)
|
|||
}
|
||||
ledStripEnabled = true;
|
||||
|
||||
uint32_t now = micros();
|
||||
const uint32_t now = currentTime;
|
||||
|
||||
// test all led timers, setting corresponding bits
|
||||
uint32_t timActive = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue