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:
parent
b200e2cb2d
commit
0861310537
3 changed files with 16 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue