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=55b1648bb162659b5a0eb3ece2558a5d356a037b;hp=a11999d66e152198b7c160a0d1f84cd4274ba2b4;hb=87b9093fd54402618c297aaacbfa68bad80302e9;hpb=63d8caf3a232630160a7af8c371b98351cd534bc diff --git a/firmware/pattern.c b/firmware/pattern.c index a11999d..55b1648 100644 --- a/firmware/pattern.c +++ b/firmware/pattern.c @@ -108,7 +108,7 @@ void pattern_init() test_running = 0; } -static pattern_t *number_pattern(unsigned char num) +pattern_t *number_pattern(unsigned char num) { if (num >= 9) num = 9; @@ -124,7 +124,9 @@ static inline pattern_t *pattern_select(unsigned char n) else if (n == 2) return mode1_pattern; else if (n == 3) - return number_pattern(1+ambient_zone); + return status_pattern_select(0); + else if (n == 4) + return status_pattern_select(1); return off_pattern; }