Commit 4bcf9d9f authored by Arnaud Ferraris's avatar Arnaud Ferraris Committed by Guido Gunther
Browse files

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).
parent 0dfcbaeb
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment