diff --git a/src/Kaleidoscope-LEDEffect-Chase.cpp b/src/Kaleidoscope-LEDEffect-Chase.cpp index c021b5a8..6bc3d5d0 100644 --- a/src/Kaleidoscope-LEDEffect-Chase.cpp +++ b/src/Kaleidoscope-LEDEffect-Chase.cpp @@ -10,7 +10,7 @@ void LEDChaseEffect::update(void) { ::LEDControl.setCrgbAt(pos, {0, 0, 0}); pos += chase_sign; - if (pos >= LED_COUNT || pos <= 0) { + if (pos >= (LED_COUNT - 1) || pos <= 0) { chase_sign = -chase_sign; } ::LEDControl.setCrgbAt(pos, {0, 0, 255});