fbd-dev-led: Scan for RGB color as well

Multicolor LEDs have the color 'rgb', we should also scan it
as they are also a FbdDevLed.
This commit is contained in:
Dylan Van Assche
2024-06-07 10:15:39 +02:00
committed by Dylan Van Assche
parent 7f69813e84
commit 94afe719a9
+1 -1
View File
@@ -63,7 +63,7 @@ fbd_dev_led_probe_default (FbdDevLed *led, GError **error)
/* We don't know anything about diffusors that can combine different
color LEDSs so go with fixed colors until the kernel gives us
enough information */
for (int i = 0; i < FBD_FEEDBACK_LED_COLOR_RGB; i++) {
for (int i = 0; i <= FBD_FEEDBACK_LED_COLOR_LAST; i++) {
g_autofree char *color = NULL;
g_autofree char *enum_name = NULL;
gchar *c;