diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-10-03 18:01:11 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-10-03 20:12:31 -0400 |
commit | f3ae48f552e2d12e1d60e86198ff7ee26aabc2ec (patch) | |
tree | 3c9de57795ab34c4fe5414bf972450764c49a355 /firmware/target | |
parent | 7642184fd9cdad3651d29e69cd1dff6f27c76946 (diff) | |
download | rockbox-f3ae48f552e2d12e1d60e86198ff7ee26aabc2ec.tar.gz rockbox-f3ae48f552e2d12e1d60e86198ff7ee26aabc2ec.zip |
hosted: control buttonlights along with the display backlight.
Change-Id: I03385db46e94ca1bb6a4e35c89f630145c9d40e5
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/hosted/backlight-unix.c | 6 |
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) | |||
41 | { | 41 | { |
42 | backlight_hw_on(); | 42 | backlight_hw_on(); |
43 | backlight_hw_brightness(DEFAULT_BRIGHTNESS_SETTING); | 43 | backlight_hw_brightness(DEFAULT_BRIGHTNESS_SETTING); |
44 | #ifdef HAVE_BUTTON_LIGHT | ||
45 | buttonlight_hw_on(); | ||
46 | #ifdef HAVE_BUTTONLIGHT_BRIGHTNESS | ||
47 | buttonlight_hw_brightness(DEFAULT_BRIGHTNESS_SETTING); | ||
48 | #endif | ||
49 | #endif | ||
44 | return true; | 50 | return true; |
45 | } | 51 | } |
46 | 52 | ||