forked from drath/libratbag
hidpp20: reset the LEDs before writing to it
We somehow now know how to write effects. No need to carry around some left overs from previous configurations. Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
committed by
bentiss
parent
dc92abb5e5
commit
714c0d5330
@@ -1981,6 +1981,8 @@ hidpp20_onboard_profiles_write_led(struct hidpp20_internal_led *internal_led,
|
||||
uint16_t period = led->period;
|
||||
uint8_t brightness = led->brightness;
|
||||
|
||||
memset(internal_led, 0, sizeof(*internal_led));
|
||||
|
||||
internal_led->mode = (uint8_t)led->mode;
|
||||
|
||||
switch (led->mode) {
|
||||
|
||||
Reference in New Issue
Block a user