mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 03:34:01 +01:00
Make color cycle skip black
This commit is contained in:
parent
3c6451d9d8
commit
6d1f210db4
|
@ -174,7 +174,7 @@ static void set_next_color_whole_kb(void)
|
||||||
|
|
||||||
new_color_id = kbd_led_state.whole_kbd_color + 1;
|
new_color_id = kbd_led_state.whole_kbd_color + 1;
|
||||||
if (new_color_id >= color_list.size) {
|
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;
|
new_color_code = color_list.colors[new_color_id].code;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue