From bc59653e9b07e81abb73512da8966cbf719a6fb1 Mon Sep 17 00:00:00 2001 From: Christian Kroll Date: Tue, 4 Sep 2012 01:39:56 +0000 Subject: [PATCH] So we meet again, Mister Off-by-one Error... --- animations/squares.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {