From ae752217c67f1af90c8a00a5353f27d264590a95 Mon Sep 17 00:00:00 2001 From: Dominic Clifton Date: Thu, 22 Jan 2015 22:56:38 +0100 Subject: [PATCH] Avoid static use. Causes problems when the amount of LEDs in the ring is odd. --- src/main/io/ledstrip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/io/ledstrip.c b/src/main/io/ledstrip.c index cece9d3c61..be6914948c 100644 --- a/src/main/io/ledstrip.c +++ b/src/main/io/ledstrip.c @@ -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;