summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm
diff options
context:
space:
mode:
authorAvi Eisenberg <613ike@gmail.com>2014-08-19 13:47:22 -0400
committerAmaury Pouly <amaury.pouly@gmail.com>2014-08-25 09:44:32 +0200
commitd3cf366868500403bbe072bddf44eaf8c7f749d4 (patch)
tree6bb0ed1414af425a3c57035918f67178df1f4d73 /firmware/target/arm
parent223038dfe054c1c6d5b770e36208b623cb7c85b4 (diff)
downloadrockbox-d3cf366868500403bbe072bddf44eaf8c7f749d4.tar.gz
rockbox-d3cf366868500403bbe072bddf44eaf8c7f749d4.zip
Fuze+: fixed brightness settings: previously there were 81 settings for only 26 possible brightnesses, now there are 33 for 33
Change-Id: Idc6e3a635850f3ee54ec23246795af88af960ab0 Reviewed-on: http://gerrit.rockbox.org/916 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c2
1 files changed, 1 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 efe9268989..3ee9d0914a 100644
--- a/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c
+++ b/firmware/target/arm/imx233/sansa-fuzeplus/backlight-fuzeplus.c
@@ -29,7 +29,7 @@
void _backlight_set_brightness(int brightness)
{
if(brightness != 0)
- brightness = 32 - (brightness * 32) / 100;
+ brightness = MAX_BRIGHTNESS_SETTING + 1 - brightness;
imx233_pinctrl_set_gpio(1, 28, false);
udelay(600);
while(brightness-- > 0)