aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorPiotr Esden-Tempski2011-03-13 21:14:05 -0700
committerPiotr Esden-Tempski2011-03-13 21:14:05 -0700
commit5754b9856c7e7ab2e265a8c52561d2dff7dbee5f (patch)
tree2b31415b7708029dca7dc894c94015bcd9d0eb7a /examples
parentaf33448c093c371a454127a259a8ebfd1640969c (diff)
Cleaned up warning in led_stripe example.
Diffstat (limited to 'examples')
-rw-r--r--examples/stm32/stm32-h103/led_stripe/led_stripe.c2
1 files changed, 1 insertions, 1 deletions
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) {