From fb574edbf4afd37ae938c432487aa3ff9a22a5a2 Mon Sep 17 00:00:00 2001 From: Werner Sembach Date: Wed, 17 May 2023 18:36:57 +0200 Subject: [PATCH] KBL/UW: Fix immediate brightness value not set to 0 on init --- src/uniwill_leds.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uniwill_leds.h b/src/uniwill_leds.h index d08efc7..1f14ee7 100644 --- a/src/uniwill_leds.h +++ b/src/uniwill_leds.h @@ -72,7 +72,7 @@ static int uniwill_write_kbd_bl_white(u8 brightness) // value for some reason. // Sidenote: IBP Gen6/7 has immediate brightness value on 0x1802 and not on 0x1808, but does // not need this workaround. - if (!data) { + if (!data && brightness) { uniwill_write_ec_ram(UW_EC_REG_KBD_BL_RGB_BLUE_BRIGHTNESS, 0x01); }