diff --git a/animations/squares.c b/animations/squares.c index 56e3a42..2d7bc93 100644 --- a/animations/squares.c +++ b/animations/squares.c @@ -29,7 +29,7 @@ void squares(void) { // add a rotating color map for smooth transitions uint8_t nColorMap[NUMPLANE * 2]; - for (uint8_t i = 0; i < (((NUMPLANE + 1) * 2) - 1); ++i) { + for (uint8_t i = 0; i < (NUMPLANE * 2); ++i) { if (i < (NUMPLANE + 1)) { nColorMap[i] = i; } else {