From c24abb7393a8d873caa2b154f803fce0db00b3a9 Mon Sep 17 00:00:00 2001 From: David Madison Date: Wed, 19 Apr 2017 21:31:39 -0400 Subject: [PATCH] Set mode variable as static Chasing what I believe is a memory allocation issue, related to large numbers of LEDs (#9) --- Arduino/LEDstream_FastLED/LEDstream_FastLED.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino b/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino index 583161e..5f0c2d9 100644 --- a/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino +++ b/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino @@ -87,8 +87,9 @@ void setup(){ } void adalight(){ + static uint8_t + mode = MODE_HEADER; uint8_t - mode = MODE_HEADER, headPos, hi, lo, chk; int16_t