|
@@ -695,11 +695,14 @@ LIGHT_BOOL light_iterateControllers()
|
695
|
695
|
|
696
|
696
|
if(light_iteratorDir == NULL)
|
697
|
697
|
{
|
698
|
|
- light_iteratorDir = opendir("/sys/class/backlight");
|
699
|
698
|
if(light_Configuration.target == LIGHT_KEYBOARD)
|
700
|
699
|
{
|
701
|
700
|
light_iteratorDir = opendir("/sys/class/leds");
|
702
|
701
|
}
|
|
702
|
+ else
|
|
703
|
+ {
|
|
704
|
+ light_iteratorDir = opendir("/sys/class/backlight");
|
|
705
|
+ }
|
703
|
706
|
if(light_iteratorDir == NULL)
|
704
|
707
|
{
|
705
|
708
|
LIGHT_ERR("could not open backlight or leds directory");
|