From 5754b9856c7e7ab2e265a8c52561d2dff7dbee5f Mon Sep 17 00:00:00 2001 From: Piotr Esden-Tempski Date: Sun, 13 Mar 2011 21:14:05 -0700 Subject: Cleaned up warning in led_stripe example. --- examples/stm32/stm32-h103/led_stripe/led_stripe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/stm32/stm32-h103/led_stripe/led_stripe.c b/examples/stm32/stm32-h103/led_stripe/led_stripe.c index 3326370..d13221b 100644 --- a/examples/stm32/stm32-h103/led_stripe/led_stripe.c +++ b/examples/stm32/stm32-h103/led_stripe/led_stripe.c @@ -154,7 +154,6 @@ void reset_colors(struct color *colors, int count) { } void init_colors(struct color *colors, int count) { - int i; colors[0].r = 0x1F; colors[0].g = 0; @@ -166,6 +165,7 @@ void init_colors(struct color *colors, int count) { colors[2].g = 0; colors[2].b = 0x1F; + count = count; } void step_colors(struct color *colors, int count) { -- cgit v1.2.3