hosted: control buttonlights along with the display backlight.

Change-Id: I03385db46e94ca1bb6a4e35c89f630145c9d40e5
This commit is contained in:
Solomon Peachy 2020-10-03 18:01:11 -04:00
parent 7642184fd9
commit f3ae48f552
1 changed files with 6 additions and 0 deletions

View File

@ -41,6 +41,12 @@ bool backlight_hw_init(void)
{
backlight_hw_on();
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;
}