]> www.fi.muni.cz Git - bike-lights.git/commitdiff
blinking mode1_pattern
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Wed, 29 Aug 2012 23:23:22 +0000 (01:23 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Fri, 31 Aug 2012 21:08:11 +0000 (23:08 +0200)
pattern.c

index 64d8640fed70a871442be8e4386d2a741e3c7b9e..fb74ae0204426579429c39a59af78d97ef9f34f4 100644 (file)
--- 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()