diff options
author | Michael Giacomelli <giac2000@hotmail.com> | 2009-01-18 18:43:58 +0000 |
---|---|---|
committer | Michael Giacomelli <giac2000@hotmail.com> | 2009-01-18 18:43:58 +0000 |
commit | 72781630876fe4637d3ab24e12f12239c7216d53 (patch) | |
tree | 2f39053283e66857294686144103d55ac18f2046 /firmware/target | |
parent | da367f4bd4e910d74c04487c84daa8b5e70e0016 (diff) |
Commit part 1 of FS#9663 by Thomas Martitz. Enables backlight fading on the Fuze and e200v2. Also removed a bit of dead code that was copied by accident into the fuze and e200v2 config files.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19791 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/arm/as3525/backlight-e200v2-fuze.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/firmware/target/arm/as3525/backlight-e200v2-fuze.c b/firmware/target/arm/as3525/backlight-e200v2-fuze.c index 2c0aad27ab..c642064591 100644 --- a/firmware/target/arm/as3525/backlight-e200v2-fuze.c +++ b/firmware/target/arm/as3525/backlight-e200v2-fuze.c @@ -28,10 +28,7 @@ void _backlight_set_brightness(int brightness) { - if (brightness > 0) - _backlight_on(); - else - _backlight_off(); + ascodec_write(AS3514_DCDC15, brightness); } void _backlight_on(void) @@ -42,7 +39,9 @@ void _backlight_on(void) #ifdef HAVE_LCD_ENABLE lcd_enable(true); /* power on lcd + visible display */ #endif +#ifndef USE_BACKLIGHT_SW_FADING ascodec_write(AS3514_DCDC15, backlight_brightness); +#endif } void _backlight_off(void) |