From e2d546bf8cf344226fa5888a392dd653013944ad Mon Sep 17 00:00:00 2001 From: Jason Coon Date: Wed, 7 Nov 2018 18:03:12 -0600 Subject: [PATCH] Issue #88: Fire and water with more than 256 leds Fixed #88 - Fire and water effect fails with more than 256 leds, thanks to @vkiisler --- esp8266-fastled-webserver.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esp8266-fastled-webserver.ino b/esp8266-fastled-webserver.ino index 9c6f45e..ae12f61 100644 --- a/esp8266-fastled-webserver.ino +++ b/esp8266-fastled-webserver.ino @@ -1136,7 +1136,7 @@ void heatMap(CRGBPalette16 palette, bool up) random16_add_entropy(random(256)); // Array of temperature readings at each simulation cell - static byte heat[256]; + static byte heat[NUM_LEDS]; byte colorindex;