From: Jan "Yenya" Kasprzak Date: Thu, 18 Jul 2013 20:12:20 +0000 (+0200) Subject: control.c: brighter lights in ambient zone 0 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=bike-lights.git;a=commitdiff_plain;h=245a5fcfa3da6628a5634a9899913c0be143ffa9 control.c: brighter lights in ambient zone 0 --- diff --git a/firmware/control.c b/firmware/control.c index d8cd698..c351ca8 100644 --- a/firmware/control.c +++ b/firmware/control.c @@ -185,7 +185,12 @@ void pwmled_select_brightness() if (battery_critical) { brightness = PWMLED_BRIGHTNESS(0, 0, 0, 0, 0); - } else if (ambient_zone < 2) { + } else if (ambient_zone == 0) { + if (dim_mode) + brightness = PWMLED_BRIGHTNESS(0, 1, 0, 0, 1); + else + brightness = PWMLED_BRIGHTNESS(1, 3, 2, 1, 3); + } else if (ambient_zone == 1) { if (dim_mode) brightness = PWMLED_BRIGHTNESS(0, 1, 0, 0, 1); else