summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2011-11-14 19:14:34 +0000
committerAmaury Pouly <pamaury@rockbox.org>2011-11-14 19:14:34 +0000
commit2a45f7772bc00c7ae2ccbe482d1b00ce54e722e7 (patch)
tree432475fe2cb33c96437bf1ce51fe67620bde0c5f /firmware/target
parente0d0eedc905679e941f35b0a03fd593a8aee9b15 (diff)
downloadrockbox-2a45f7772bc00c7ae2ccbe482d1b00ce54e722e7.tar.gz
rockbox-2a45f7772bc00c7ae2ccbe482d1b00ce54e722e7.zip
fuze+: fix backlight calculations
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30977 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c b/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c
index f2c9e438e1..90bd8b556b 100644
--- a/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c
+++ b/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c
@@ -28,6 +28,7 @@
28 28
29void _backlight_set_brightness(int brightness) 29void _backlight_set_brightness(int brightness)
30{ 30{
31 brightness = 32 - (brightness * 32) / 100;
31 imx233_set_gpio_output(1, 28, false); 32 imx233_set_gpio_output(1, 28, false);
32 udelay(600); 33 udelay(600);
33 while(brightness-- > 0) 34 while(brightness-- > 0)