forked from len0rd/rockbox
hosted: control buttonlights along with the display backlight.
Change-Id: I03385db46e94ca1bb6a4e35c89f630145c9d40e5
This commit is contained in:
parent
7642184fd9
commit
f3ae48f552
1 changed files with 6 additions and 0 deletions
|
@ -41,6 +41,12 @@ bool backlight_hw_init(void)
|
||||||
{
|
{
|
||||||
backlight_hw_on();
|
backlight_hw_on();
|
||||||
backlight_hw_brightness(DEFAULT_BRIGHTNESS_SETTING);
|
backlight_hw_brightness(DEFAULT_BRIGHTNESS_SETTING);
|
||||||
|
#ifdef HAVE_BUTTON_LIGHT
|
||||||
|
buttonlight_hw_on();
|
||||||
|
#ifdef HAVE_BUTTONLIGHT_BRIGHTNESS
|
||||||
|
buttonlight_hw_brightness(DEFAULT_BRIGHTNESS_SETTING);
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue