From d335cc22cf29d0951f24e4b3cc5ae0b5c4cffa19 Mon Sep 17 00:00:00 2001 From: Jason Coon Date: Sun, 7 May 2017 09:18:30 -0500 Subject: [PATCH] Fixed TwinkleFOX lockups on >255 LEDs --- TwinkleFOX.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TwinkleFOX.h b/TwinkleFOX.h index f27b563..e784a88 100644 --- a/TwinkleFOX.h +++ b/TwinkleFOX.h @@ -194,7 +194,7 @@ void drawTwinkles() uint8_t backgroundBrightness = bg.getAverageLight(); - for(uint8_t i = 0; i < NUM_LEDS; i++) { + for(uint16_t i = 0; i < NUM_LEDS; i++) { CRGB& pixel = leds[i]; PRNG16 = (uint16_t)(PRNG16 * 2053) + 1384; // next 'random' number