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
1 changed files with 1 additions and 1 deletions

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;