From b5154cfdaa3a352c1681e073548d880bea0a061b Mon Sep 17 00:00:00 2001 From: "Jan \"Yenya\" Kasprzak" Date: Thu, 30 Aug 2012 01:23:22 +0200 Subject: [PATCH] blinking mode1_pattern --- pattern.c | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/pattern.c b/pattern.c index 64d8640..fb74ae0 100644 --- a/pattern.c +++ b/pattern.c @@ -23,11 +23,14 @@ pattern_t blink_pattern[] = { }; pattern_t mode1_pattern[] = { - { 1, 0x1 }, + { 3, 0x1 }, { 0, 0x1 }, - { 4, 0x1 }, + { 3, 0x1 }, + { 0, 0x8 }, + { 1, 0x1 }, { 0, 0x1 }, { 1, 0x1 }, + { 0, 0x8 }, PATTERN_END }; @@ -123,17 +126,10 @@ static inline pattern_t *pattern_select(unsigned char n) return off_pattern; // Don't mess with non-enabled LEDs if (n == 2) { - if (test_running) { - log_byte(0xF7); - log_flush(); - return off_pattern; - } else { - test_running = 1; - log_byte(0xF6); - return mode1_pattern; - } + return mode1_pattern; } - return number_pattern(1+ambient_zone); + // return number_pattern(1+ambient_zone); + return off_pattern; } void patterns_next_tick() -- 2.39.3