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:
committed by
Guido Gunther
parent
0dfcbaeb5c
commit
4bcf9d9fbb
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user