From 31e2dd3ceac5ed303f0519f9600fb79c427b90dd Mon Sep 17 00:00:00 2001 From: Felix Epp Date: Tue, 19 Jul 2016 01:52:44 +0200 Subject: [PATCH] Fix writing of solid color tp EEPROM A typo wrote the red value to green and blue as well, which resulted in some level of white. ## To make a commit, type your commit message and press SUPER-ENTER. To cancel ## the commit, close the window. To sign off on the commit, press SUPER-S. ## ## You may also reference or close a GitHub issue with this commit. To do so, ## type `#` followed by the `tab` key. You will be shown a list of issues ## related to the current repo. You may also type `owner/repo#` plus the `tab` ## key to reference an issue in a different GitHub repo. --- esp8266-fastled-webserver.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/esp8266-fastled-webserver.ino b/esp8266-fastled-webserver.ino index 40cfbd3..d565893 100644 --- a/esp8266-fastled-webserver.ino +++ b/esp8266-fastled-webserver.ino @@ -315,7 +315,7 @@ void loop(void) { EVERY_N_MILLISECONDS(40) { nblendPaletteTowardPalette( gCurrentPalette, gTargetPalette, 16); } - + if (autoplayEnabled && millis() > autoPlayTimeout) { adjustPattern(true); autoPlayTimeout = millis() + (autoPlayDurationSeconds * 1000); @@ -642,8 +642,8 @@ void setSolidColor(uint8_t r, uint8_t g, uint8_t b) solidColor = CRGB(r, g, b); EEPROM.write(2, r); - EEPROM.write(3, r); - EEPROM.write(4, r); + EEPROM.write(3, g); + EEPROM.write(4, b); setPattern(patternCount - 1); }