]> www.fi.muni.cz Git - bike-lights.git/commitdiff
patterns: use mode1_pattern for all PWM LEDs for now
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Wed, 21 Nov 2012 22:14:26 +0000 (23:14 +0100)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Wed, 21 Nov 2012 22:14:26 +0000 (23:14 +0100)
firmware/pattern.c

index 55b1648bb162659b5a0eb3ece2558a5d356a037b..56f4781bee1131e2209ce8010de5d0847117a1d5 100644 (file)
@@ -121,7 +121,7 @@ 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
-       else if (n == 2)
+       else if (n < N_PWMLEDS)
                return mode1_pattern;
        else if (n == 3)
                return status_pattern_select(0);