forked from enlightenment/enlightenment
even though it doesnt matter. lets be nice and free things eh?
SVN revision: 61141
This commit is contained in:
parent
9882ed594f
commit
cd87dcb959
|
@ -156,9 +156,13 @@ main(int argc,
|
||||||
snprintf(file, sizeof(file), "/sys/class/leds/lcd-backlight/brightness");
|
snprintf(file, sizeof(file), "/sys/class/leds/lcd-backlight/brightness");
|
||||||
if (stat(file, &st) >= 0)
|
if (stat(file, &st) >= 0)
|
||||||
{
|
{
|
||||||
maxstr = read_file("/sys/devices/leds/lcd-backlight/max_brightness");
|
|
||||||
maxlevel = 255;
|
maxlevel = 255;
|
||||||
if (maxstr) maxlevel = atoi(maxstr);
|
maxstr = read_file("/sys/devices/leds/lcd-backlight/max_brightness");
|
||||||
|
if (maxstr)
|
||||||
|
{
|
||||||
|
maxlevel = atoi(maxstr);
|
||||||
|
free(maxstr);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (maxlevel > 0)
|
if (maxlevel > 0)
|
||||||
|
|
Loading…
Reference in New Issue