fbd-dev-leds: store LED color when parsing devices

Failing to do so will always select the first recognized LED (the blue 
one for the PinePhone).
This commit is contained in:
Arnaud Ferraris
2020-07-14 15:33:32 +00:00
committed by Guido Gunther
parent 0dfcbaeb5c
commit 4bcf9d9fbb
+1
View File
@@ -130,6 +130,7 @@ initable_init (GInitable *initable,
led = g_malloc0 (sizeof(FbdDevLed));
led->dev = dev;
led->color = i;
led->max_brightness = brightness;
path = g_udev_device_get_sysfs_path (dev);
g_debug ("LED at '%s' usable", path);