forked from drath/libratbag
sinowealth: handle new RGB effects
This commit is contained in:
committed by
Peter Hutterer
parent
34fafbc0f8
commit
c6051cb9ea
@@ -390,6 +390,8 @@ sinowealth_update_profile_from_config(struct ratbag_profile *profile)
|
||||
case RGB_GLORIOUS:
|
||||
case RGB_BREATHING:
|
||||
case RGB_BREATHING7:
|
||||
case RGB_CONSTANT:
|
||||
case RGB_RANDOM:
|
||||
case RGB_TAIL:
|
||||
case RGB_RAVE:
|
||||
case RGB_WAVE:
|
||||
@@ -401,6 +403,9 @@ sinowealth_update_profile_from_config(struct ratbag_profile *profile)
|
||||
led->color = sinowealth_rbg_to_color(config->breathing1_color);
|
||||
sinowealth_set_led_from_rgb_mode(led, config->breathing1_mode);
|
||||
break;
|
||||
default:
|
||||
log_error(device->ratbag, "Got unknown RGB effect: %d\n", config->rgb_effect);
|
||||
break;
|
||||
}
|
||||
ratbag_led_unref(led);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user