mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
sinowealth: handle RGB_NOT_SUPPORTED explicitly
This should technically be unreachable but this is good for code quality.
This commit is contained in:
committed by
staticssleever668
parent
2dea887d2f
commit
85241fdd1b
@@ -1090,6 +1090,7 @@ sinowealth_update_profile_from_config(struct ratbag_profile *profile)
|
||||
led->color = sinowealth_raw_to_color(device, config->breathing1_color);
|
||||
sinowealth_set_led_from_rgb_mode(led, config->breathing1_mode);
|
||||
break;
|
||||
case RGB_NOT_SUPPORTED:
|
||||
default:
|
||||
log_error(device->ratbag, "Got unknown RGB effect: %d\n", config->rgb_effect);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user