Fixed TwinkleFOX lockups on >255 LEDs

This commit is contained in:
Jason Coon 2017-05-07 09:18:30 -05:00
parent e5c988727e
commit d335cc22cf

View File

@ -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