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>
This commit is contained in:
Avi Eisenberg 2014-08-19 13:47:22 -04:00 committed by Amaury Pouly
parent 223038dfe0
commit d3cf366868
2 changed files with 3 additions and 3 deletions

View file

@ -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)