From 30a8d2313965ae7d0fb8d8354e7ee4c0d981377a Mon Sep 17 00:00:00 2001 From: Jason Coon Date: Tue, 21 Feb 2017 18:53:15 -0600 Subject: [PATCH] Fixed wrong EEPROM address for currentPaletteIndex --- esp8266-fastled-webserver.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esp8266-fastled-webserver.ino b/esp8266-fastled-webserver.ino index b75f97f..68712f5 100644 --- a/esp8266-fastled-webserver.ino +++ b/esp8266-fastled-webserver.ino @@ -786,7 +786,7 @@ void loadSettings() autoplay = EEPROM.read(6); autoplayDuration = EEPROM.read(7); - currentPaletteIndex = EEPROM.read(1); + currentPaletteIndex = EEPROM.read(8); if (currentPaletteIndex < 0) currentPaletteIndex = 0; else if (currentPaletteIndex >= paletteCount) @@ -898,7 +898,7 @@ void setPalette(uint8_t value) currentPaletteIndex = value; - EEPROM.write(1, currentPaletteIndex); + EEPROM.write(8, currentPaletteIndex); EEPROM.commit(); broadcastInt("palette", currentPaletteIndex);