From: Jan "Yenya" Kasprzak Date: Fri, 30 Nov 2012 01:14:30 +0000 (+0100) Subject: pattern.c: mode1_pattern out of modes 1 and 2 instead of 1 and 4 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=bike-lights.git;a=commitdiff_plain;h=892d75023e96b5b2f6feb93c90c2d5af91591e52 pattern.c: mode1_pattern out of modes 1 and 2 instead of 1 and 4 --- diff --git a/firmware/pattern.c b/firmware/pattern.c index d3e0977..f5f8fc6 100644 --- a/firmware/pattern.c +++ b/firmware/pattern.c @@ -25,9 +25,9 @@ pattern_t blink_pattern[] = { }; pattern_t mode1_pattern[] = { - { 4, 0x1 }, + { 2, 0x1 }, { 0, 0x1 }, - { 4, 0x1 }, + { 2, 0x1 }, { 0, 0x8 }, { 1, 0x1 }, { 0, 0x1 }, @@ -124,9 +124,7 @@ pattern_t *number_pattern(unsigned char num) 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 < N_PWMLEDS) + if (n < N_PWMLEDS) return mode1_pattern; else if (n == 3) return status_pattern_select(0);