summaryrefslogtreecommitdiffstats
path: root/firmware/target/mips/ingenic_jz47xx/onda_vx747
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-06-24 20:27:55 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-06-24 20:27:55 +0000
commit20e5ffe3064d5b1843c7d81f3eac74328b5f56a4 (patch)
tree5a1939603885dd83ee31ef351fa46524cc2d13af /firmware/target/mips/ingenic_jz47xx/onda_vx747
parent119cfdaa0ab21130ec17fafbe869996ec741abe8 (diff)
downloadrockbox-20e5ffe3064d5b1843c7d81f3eac74328b5f56a4.tar.gz
rockbox-20e5ffe3064d5b1843c7d81f3eac74328b5f56a4.tar.bz2
rockbox-20e5ffe3064d5b1843c7d81f3eac74328b5f56a4.zip
Onda VX747: make backlight setting range from 1->16 instead of 0->15
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21494 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/onda_vx747')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/onda_vx747/backlight-onda_vx7X7.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/onda_vx747/backlight-onda_vx7X7.c b/firmware/target/mips/ingenic_jz47xx/onda_vx747/backlight-onda_vx7X7.c
index 48c4e2e636..78ff786755 100644
--- a/firmware/target/mips/ingenic_jz47xx/onda_vx747/backlight-onda_vx7X7.c
+++ b/firmware/target/mips/ingenic_jz47xx/onda_vx747/backlight-onda_vx7X7.c
@@ -44,7 +44,7 @@ static void set_backlight(int val)
__tcu_stop_counter(BACKLIGHT_PWM);
__tcu_set_count(BACKLIGHT_PWM, 0);
- __tcu_set_half_data(BACKLIGHT_PWM, logtable[val]);
+ __tcu_set_half_data(BACKLIGHT_PWM, logtable[val - 1]);
__tcu_set_full_data(BACKLIGHT_PWM, 256);
__tcu_start_counter(BACKLIGHT_PWM);