X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=bike-lights.git;a=blobdiff_plain;f=firmware%2Fpattern.c;h=989009e6c237b55ebc8e3ba96fa1050753ce8b5d;hp=a39be3657c579a4e4cf8d5a5a65ebb61c729f7f8;hb=86a03e9715c4d3d91a75ed8ab07b7b1b0c9a556b;hpb=92d572709e4653d1475014cc9bd90f87b3622a8d 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()