mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-14 19:24:00 +01:00
Fix leds brightness not getting updated on firmware controlled brightness change
This commit is contained in:
parent
0845466b0b
commit
5ad584ca12
|
@ -292,6 +292,7 @@ int uniwill_leds_notify_brightness_change_extern(void) {
|
|||
if (uniwill_kb_backlight_type == UNIWILL_KB_BACKLIGHT_TYPE_FIXED_COLOR) {
|
||||
uniwill_read_ec_ram(UW_EC_REG_KBD_BL_STATUS, &data);
|
||||
data = (data >> 5) & 0x3;
|
||||
uniwill_led_cdev.brightness = data;
|
||||
led_classdev_notify_brightness_hw_changed(&uniwill_led_cdev, data);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue