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=73f5e8ee02ee5ce7ce9ad5da593274dbdbc7f6b6;hp=2b1a7369f39f24e8b949e0d8e60aa73eb91d18fc;hb=3e13c7f4abd65b939c1645d77cf6ed5e0124808e;hpb=0faab005ea645987330d56f63796b0b16225b505 diff --git a/firmware/control.c b/firmware/control.c index 2b1a736..73f5e8e 100644 --- a/firmware/control.c +++ b/firmware/control.c @@ -224,9 +224,9 @@ void pwmled_select_brightness() brightness = PWMLED_BRIGHTNESS(0, 0, 0, 0, 0); } else if (ambient_zone == 0) { if (dim_mode) - brightness = PWMLED_BRIGHTNESS(0, 1, 0, 0, 1); + brightness = PWMLED_BRIGHTNESS(0, 1, 0, 0, 2); else - brightness = PWMLED_BRIGHTNESS(1, 3, 2, 1, 3); + brightness = PWMLED_BRIGHTNESS(1, 3, 2, 1, 4); } else if (ambient_zone == 1) { if (dim_mode) brightness = PWMLED_BRIGHTNESS(0, 1, 0, 0, 1); @@ -235,7 +235,7 @@ void pwmled_select_brightness() } else if (ambient_zone == 2) { brightness = PWMLED_BRIGHTNESS(1, 3, 2, 1, 3); } else if (ambient_zone == 3) { - brightness = PWMLED_BRIGHTNESS(2, 4, 2, 2, 4); + brightness = PWMLED_BRIGHTNESS(2, 4, 2, 2, 5); } pwmled_set_brightness(brightness);