1
0
Fork 0
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:
Martin Budden 2016-07-06 17:09:04 +01:00
parent 7122689038
commit 2f9ca4355c
21 changed files with 134 additions and 125 deletions

View file

@ -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;