1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 04:45:24 +03:00

Avoid static use. Causes problems when the amount of LEDs in the ring

is odd.
This commit is contained in:
Dominic Clifton 2015-01-22 22:56:38 +01:00
parent e7302a9e10
commit ae752217c6

View file

@ -751,7 +751,7 @@ int applyLedThrustRingLayer(void)
int returnedValue = 1;
int throttleScaled = scaleRange(rcData[THROTTLE], PWM_RANGE_MIN, PWM_RANGE_MAX, 1, 10);
static uint8_t rotationPhase = 0;
static bool nextLedOn = false;
bool nextLedOn = false;
hsvColor_t ringColor;
const ledConfig_t *ledConfig;