From: Jan "Yenya" Kasprzak Date: Wed, 29 Aug 2012 23:23:22 +0000 (+0200) Subject: blinking mode1_pattern X-Git-Tag: gedasymbols-20120913~27 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=b5154cfdaa3a352c1681e073548d880bea0a061b;p=bike-lights.git blinking mode1_pattern --- 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()