From 85241fdd1b8f4b2f3a3bf5ab41fafbcb55879318 Mon Sep 17 00:00:00 2001 From: Yaroslav Chvanov Date: Thu, 21 Apr 2022 17:29:26 +0300 Subject: [PATCH] sinowealth: handle RGB_NOT_SUPPORTED explicitly This should technically be unreachable but this is good for code quality. --- src/driver-sinowealth.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/driver-sinowealth.c b/src/driver-sinowealth.c index 8c7135e2..58af924d 100644 --- a/src/driver-sinowealth.c +++ b/src/driver-sinowealth.c @@ -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;