summaryrefslogtreecommitdiff
path: root/firmware/target/arm
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2011-11-14 19:46:09 +0000
committerAmaury Pouly <pamaury@rockbox.org>2011-11-14 19:46:09 +0000
commit7fec08927bdca55a7b49d44fda6feb3952d4cf2d (patch)
treeee4f44a49be7ea79973c0e542cd827126fb020c5 /firmware/target/arm
parent2a45f7772bc00c7ae2ccbe482d1b00ce54e722e7 (diff)
fuze+: fix backlight to have a real zero
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30978 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c b/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c
index 90bd8b556b..6e13c0419c 100644
--- a/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c
+++ b/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c
@@ -28,7 +28,8 @@
void _backlight_set_brightness(int brightness)
{
- brightness = 32 - (brightness * 32) / 100;
+ if(brightness != 0)
+ brightness = 32 - (brightness * 32) / 100;
imx233_set_gpio_output(1, 28, false);
udelay(600);
while(brightness-- > 0)