From 86a03e9715c4d3d91a75ed8ab07b7b1b0c9a556b Mon Sep 17 00:00:00 2001 From: "Jan \"Yenya\" Kasprzak" Date: Sun, 30 Sep 2012 22:11:43 +0200 Subject: [PATCH] patterns for testing --- firmware/pattern.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/firmware/pattern.c b/firmware/pattern.c index a39be36..989009e 100644 --- a/firmware/pattern.c +++ b/firmware/pattern.c @@ -23,9 +23,9 @@ pattern_t blink_pattern[] = { }; pattern_t mode1_pattern[] = { - { 3, 0x1 }, + { 4, 0x1 }, { 0, 0x1 }, - { 3, 0x1 }, + { 4, 0x1 }, { 0, 0x8 }, { 1, 0x1 }, { 0, 0x1 }, @@ -124,12 +124,11 @@ static inline pattern_t *pattern_select(unsigned char n) { if (n < N_PWMLEDS && !pwmled_enabled(n)) return off_pattern; // Don't mess with non-enabled LEDs - - if (n == 2) { + else if (n == 2) return mode1_pattern; - } - return number_pattern(1+ambient_zone); - // return off_pattern; + else if (n == 3) + return number_pattern(1+ambient_zone); + return off_pattern; } void patterns_next_tick() -- 2.39.3