Fixed autoplay compile error.

This commit is contained in:
Jason Coon 2017-02-23 19:22:51 -06:00
parent 681c29a877
commit 020b0b0e43

View File

@ -733,7 +733,7 @@ void adjustPattern(bool up)
if (currentPatternIndex >= patternCount) if (currentPatternIndex >= patternCount)
currentPatternIndex = 0; currentPatternIndex = 0;
if (autoplay == 0) { if (autoplayEnabled) {
EEPROM.write(1, currentPatternIndex); EEPROM.write(1, currentPatternIndex);
EEPROM.commit(); EEPROM.commit();
} }
@ -749,7 +749,7 @@ void setPattern(int value)
currentPatternIndex = value; currentPatternIndex = value;
if (autoplay == 0) { if (autoplayEnabled == 0) {
EEPROM.write(1, currentPatternIndex); EEPROM.write(1, currentPatternIndex);
EEPROM.commit(); EEPROM.commit();
} }