diff options
author | Szymon Dziok <b0hoon@o2.pl> | 2011-09-11 13:48:14 +0000 |
---|---|---|
committer | Szymon Dziok <b0hoon@o2.pl> | 2011-09-11 13:48:14 +0000 |
commit | a943e7485b016062da1c7be0f4eeb9df33459afd (patch) | |
tree | 5634672fd8a97573bd8d2b88b71867c8ff2daf55 /firmware/target/arm/philips | |
parent | 201574d689b9144382bf9dfeb8fbce0565391e86 (diff) | |
download | rockbox-a943e7485b016062da1c7be0f4eeb9df33459afd.tar.gz rockbox-a943e7485b016062da1c7be0f4eeb9df33459afd.zip |
HDD6330: Enable only one led (from five) on the scroll strip in order to save battery life.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30506 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/philips')
-rw-r--r-- | firmware/target/arm/philips/hdd6330/backlight-hdd6330.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/philips/hdd6330/backlight-hdd6330.c b/firmware/target/arm/philips/hdd6330/backlight-hdd6330.c index ec77e9c828..68d2ad8149 100644 --- a/firmware/target/arm/philips/hdd6330/backlight-hdd6330.c +++ b/firmware/target/arm/philips/hdd6330/backlight-hdd6330.c | |||
@@ -47,7 +47,7 @@ void _backlight_off(void) | |||
47 | } | 47 | } |
48 | 48 | ||
49 | #ifdef HAVE_BUTTON_LIGHT | 49 | #ifdef HAVE_BUTTON_LIGHT |
50 | #define BUTTONLIGHT_MASK 0x7f | 50 | #define BUTTONLIGHT_MASK 0x64 |
51 | static unsigned short buttonight_brightness = DEFAULT_BRIGHTNESS_SETTING - 1; | 51 | static unsigned short buttonight_brightness = DEFAULT_BRIGHTNESS_SETTING - 1; |
52 | static unsigned short buttonlight_status = 0; | 52 | static unsigned short buttonlight_status = 0; |
53 | 53 | ||
@@ -62,7 +62,7 @@ void _buttonlight_on(void) | |||
62 | /* skip 2 leds because their light does not pass */ | 62 | /* skip 2 leds because their light does not pass */ |
63 | /* through the panel anyway - on GPOs, module 0 */ | 63 | /* through the panel anyway - on GPOs, module 0 */ |
64 | touchpad_set_parameter(0x00,0x22,0x15); | 64 | touchpad_set_parameter(0x00,0x22,0x15); |
65 | /* left, right and the scrollstrip */ | 65 | /* left, right and the scrollstrip (1 led from 5) */ |
66 | touchpad_set_buttonlights(BUTTONLIGHT_MASK, buttonight_brightness); | 66 | touchpad_set_buttonlights(BUTTONLIGHT_MASK, buttonight_brightness); |
67 | buttonlight_status = 1; | 67 | buttonlight_status = 1; |
68 | } | 68 | } |