From 9b69037ebc79ed225d1b5292dd31fd9bb02c2ba6 Mon Sep 17 00:00:00 2001 From: sanni Date: Tue, 2 Jul 2024 11:35:51 +0200 Subject: [PATCH] Fix color cycling when idle --- Cart_Reader/Cart_Reader.ino | 4 ++-- 1 file 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