summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2006-04-26 19:26:01 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2006-04-26 19:26:01 +0000
commit171b5ff207179d1cc88cdd268ba5565535c43fbd (patch)
tree9647c38b0b7e3ed8bbd22169d4375d96b2704ad2 /firmware
parent52ad3893cae7cfd92bdb3cac054d0055d4888e0a (diff)
downloadrockbox-171b5ff207179d1cc88cdd268ba5565535c43fbd.tar.gz
rockbox-171b5ff207179d1cc88cdd268ba5565535c43fbd.tar.bz2
rockbox-171b5ff207179d1cc88cdd268ba5565535c43fbd.zip
H300: add a small delay between lcd enable and backlight on. Avoids a flash at backlight on when using dark backgrounds. (fix for bug 4764)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9815 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/backlight.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c
index a84fc8b280..df13fa11ef 100644
--- a/firmware/backlight.c
+++ b/firmware/backlight.c
@@ -64,6 +64,7 @@ static inline void __backlight_on(void)
and_l(~0x00020000, &GPIO1_OUT);
#elif CONFIG_BACKLIGHT == BL_IRIVER_H300
lcd_enable(true);
+ sleep(HZ/100); /* lcd needs time - avoid flashing for dark screens */
or_l(0x00020000, &GPIO1_OUT);
#elif CONFIG_BACKLIGHT == BL_RTC
/* Enable square wave */