From 3c6451d9d8bc2ff9b1f221ed88f0a48703721958 Mon Sep 17 00:00:00 2001 From: Werner Sembach Date: Thu, 25 Aug 2022 18:31:33 +0200 Subject: [PATCH 1/2] Fix compilation issue --- src/clevo_leds.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/clevo_leds.h b/src/clevo_leds.h index 9891685..bb58624 100644 --- a/src/clevo_leds.h +++ b/src/clevo_leds.h @@ -131,9 +131,9 @@ static void clevo_leds_set_brightness_mc(struct led_classdev *led_cdev, enum led pr_debug("clevo_leds_set_brightness_mc(): clevo_evaluate_set_brightness() failed\n"); return; } - clevo_mcled_cdevs[0].brightness = brightness; - clevo_mcled_cdevs[1].brightness = brightness; - clevo_mcled_cdevs[2].brightness = brightness; + clevo_mcled_cdevs[0].led_cdev.brightness = brightness; + clevo_mcled_cdevs[1].led_cdev.brightness = brightness; + clevo_mcled_cdevs[2].led_cdev.brightness = brightness; zone = mcled_cdev->subled_info[0].channel; From 6d1f210db4a407884960ab19af10c8ba28d79ce9 Mon Sep 17 00:00:00 2001 From: Werner Sembach Date: Thu, 25 Aug 2022 19:06:16 +0200 Subject: [PATCH 2/2] Make color cycle skip black --- src/clevo_keyboard.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clevo_keyboard.h b/src/clevo_keyboard.h index 057d1a3..6dfd0bb 100644 --- a/src/clevo_keyboard.h +++ b/src/clevo_keyboard.h @@ -174,7 +174,7 @@ static void set_next_color_whole_kb(void) new_color_id = kbd_led_state.whole_kbd_color + 1; if (new_color_id >= color_list.size) { - new_color_id = 0; + new_color_id = 1; // Skip black } new_color_code = color_list.colors[new_color_id].code;