if (err_flags.err_battery)
return slow_pattern;
+ if (ambient_shadow)
+ return night_pattern;
+
switch (ambient_zone) {
case 0: return night_pattern;
case 1:
if (err_flags.err_battery)
return NULL;
+ if (ambient_shadow)
+ return on_pattern;
+
switch (ambient_zone) {
case 0: return dim_mode
? number_pattern(1, 1)
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);
} 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);