diff options
author | sanni <[email protected]> | 2024-07-02 11:35:51 +0200 |
---|---|---|
committer | sanni <[email protected]> | 2024-07-02 11:35:51 +0200 |
commit | 9b69037ebc79ed225d1b5292dd31fd9bb02c2ba6 (patch) | |
tree | 98b87950abcba128206b09b5e860fa5b1e398a66 | |
parent | 59f2525f807c4e274fe0f44e13e8fb0b6357dd57 (diff) | |
download | cartreader-9b69037ebc79ed225d1b5292dd31fd9bb02c2ba6.tar.gz cartreader-9b69037ebc79ed225d1b5292dd31fd9bb02c2ba6.zip |
Fix color cycling when idle
-rw-r--r-- | Cart_Reader/Cart_Reader.ino | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Cart_Reader/Cart_Reader.ino b/Cart_Reader/Cart_Reader.ino index e614618..353a52e 100644 --- a/Cart_Reader/Cart_Reader.ino +++ b/Cart_Reader/Cart_Reader.ino @@ -2814,7 +2814,7 @@ unsigned char questionBox_Display(const __FlashStringHelper* question, char answ // Attract Mode
if (millis() - idleTime > 300000) {
if ((millis() - idleTime) % 4000 == 0) {
- if (currentColor < 7) {
+ if (currentColor < 5) {
currentColor++;
if (currentColor == 1) {
currentColor = 2; // skip red as that signifies an error to the user
@@ -2822,8 +2822,8 @@ unsigned char questionBox_Display(const __FlashStringHelper* question, char answ } else {
currentColor = 0;
}
+ rgbLed(currentColor);
}
- rgbLed(currentColor);
}
/* Check Button/rotary encoder
|