From 020b0b0e4315bd43f10b87ee77288db56994d333 Mon Sep 17 00:00:00 2001 From: Jason Coon Date: Thu, 23 Feb 2017 19:22:51 -0600 Subject: [PATCH] Fixed autoplay compile error. --- 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 48399d5..4005b59 100644 --- a/esp8266-fastled-webserver.ino +++ b/esp8266-fastled-webserver.ino @@ -733,7 +733,7 @@ void adjustPattern(bool up) if (currentPatternIndex >= patternCount) currentPatternIndex = 0; - if (autoplay == 0) { + if (autoplayEnabled) { EEPROM.write(1, currentPatternIndex); EEPROM.commit(); } @@ -749,7 +749,7 @@ void setPattern(int value) currentPatternIndex = value; - if (autoplay == 0) { + if (autoplayEnabled == 0) { EEPROM.write(1, currentPatternIndex); EEPROM.commit(); }