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