1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 01:05:27 +03:00

Improve cycle times by avoiding an led strip update while one is still

in progress.
This commit is contained in:
Dominic Clifton 2014-06-08 12:54:52 +01:00
parent b200e2cb2d
commit 0861310537
3 changed files with 16 additions and 1 deletions

View file

@ -449,6 +449,10 @@ uint32_t nextBatteryFlashAt = 0;
void updateLedStrip(void)
{
if (!isWS2811LedStripReady()) {
return;
}
uint32_t now = micros();
bool indicatorFlashNow = (int32_t)(now - nextIndicatorFlashAt) >= 0L;