From 245a5fcfa3da6628a5634a9899913c0be143ffa9 Mon Sep 17 00:00:00 2001 From: "Jan \"Yenya\" Kasprzak" Date: Thu, 18 Jul 2013 22:12:20 +0200 Subject: [PATCH] control.c: brighter lights in ambient zone 0 --- firmware/control.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.39.3