diff options
author | Peter D'Hoye <peter.dhoye@gmail.com> | 2006-04-26 19:26:01 +0000 |
---|---|---|
committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2006-04-26 19:26:01 +0000 |
commit | 171b5ff207179d1cc88cdd268ba5565535c43fbd (patch) | |
tree | 9647c38b0b7e3ed8bbd22169d4375d96b2704ad2 | |
parent | 52ad3893cae7cfd92bdb3cac054d0055d4888e0a (diff) | |
download | rockbox-171b5ff207179d1cc88cdd268ba5565535c43fbd.tar.gz 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
-rw-r--r-- | firmware/backlight.c | 1 |
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) | |||
64 | and_l(~0x00020000, &GPIO1_OUT); | 64 | and_l(~0x00020000, &GPIO1_OUT); |
65 | #elif CONFIG_BACKLIGHT == BL_IRIVER_H300 | 65 | #elif CONFIG_BACKLIGHT == BL_IRIVER_H300 |
66 | lcd_enable(true); | 66 | lcd_enable(true); |
67 | sleep(HZ/100); /* lcd needs time - avoid flashing for dark screens */ | ||
67 | or_l(0x00020000, &GPIO1_OUT); | 68 | or_l(0x00020000, &GPIO1_OUT); |
68 | #elif CONFIG_BACKLIGHT == BL_RTC | 69 | #elif CONFIG_BACKLIGHT == BL_RTC |
69 | /* Enable square wave */ | 70 | /* Enable square wave */ |