Fixed autoplay compile error.
This commit is contained in:
parent
681c29a877
commit
020b0b0e43
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user