X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=bike-lights.git;a=blobdiff_plain;f=firmware%2Fcontrol.c;h=eeeca84cb1ba5565a384a7a216f26a9ffdfc433b;hp=384edc87123994e84d52f75c045401c7f70a1fd1;hb=72c8810f9c8c1c8717364174b8792b1f0c988353;hpb=fb3fd7b91398f2ad2cf344bdfff56e353972986a diff --git a/firmware/control.c b/firmware/control.c index 384edc8..eeeca84 100644 --- a/firmware/control.c +++ b/firmware/control.c @@ -213,3 +213,10 @@ pattern_t *illumination_led_pattern_select() } } +pattern_t *laser_pattern_select() +{ + if (!dim_mode && ambient_zone <= 1) + return number_pattern(2, 1); + else + return NULL; +}