summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-10-03 18:01:11 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-10-03 20:12:31 -0400
commitf3ae48f552e2d12e1d60e86198ff7ee26aabc2ec (patch)
tree3c9de57795ab34c4fe5414bf972450764c49a355
parent7642184fd9cdad3651d29e69cd1dff6f27c76946 (diff)
downloadrockbox-f3ae48f552e2d12e1d60e86198ff7ee26aabc2ec.tar.gz
rockbox-f3ae48f552e2d12e1d60e86198ff7ee26aabc2ec.zip
hosted: control buttonlights along with the display backlight.
Change-Id: I03385db46e94ca1bb6a4e35c89f630145c9d40e5
-rw-r--r--firmware/target/hosted/backlight-unix.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/target/hosted/backlight-unix.c b/firmware/target/hosted/backlight-unix.c
index 06da05e487..3a0b301e2c 100644
--- a/firmware/target/hosted/backlight-unix.c
+++ b/firmware/target/hosted/backlight-unix.c
@@ -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;
}