summaryrefslogtreecommitdiff
path: root/firmware/backlight.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-09-12 22:24:58 +0000
committerJens Arnold <amiconn@rockbox.org>2007-09-12 22:24:58 +0000
commitf265ee9cd5e4f4798fcff4e07c7e8efaff308eb0 (patch)
tree4feb621961207358767b645dff8b3ffce01ddf46 /firmware/backlight.c
parentc41470d33d5d198ce02826aab1c06335a2156533 (diff)
downloadrockbox-f265ee9cd5e4f4798fcff4e07c7e8efaff308eb0.zip
rockbox-f265ee9cd5e4f4798fcff4e07c7e8efaff308eb0.tar.gz
rockbox-f265ee9cd5e4f4798fcff4e07c7e8efaff308eb0.tar.bz2
rockbox-f265ee9cd5e4f4798fcff4e07c7e8efaff308eb0.tar.xz
* Don't touch the backlight(s) (and buttonlight) at backlight init in order to avoid a short flash when the lights are both disabled in the bootloader and in rockbox settings. * Properly reflect the backlight state set by the 1st/2nd gen bootloader.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14679 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/backlight.c')
-rw-r--r--firmware/backlight.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c
index 2143ece..ca8ffd1 100644
--- a/firmware/backlight.c
+++ b/firmware/backlight.c
@@ -623,13 +623,9 @@ void backlight_init(void)
# endif
}
#endif
- backlight_on();
-#ifdef HAVE_REMOTE_LCD
- remote_backlight_on();
-#endif
-#ifdef HAVE_BUTTON_LIGHT
- button_backlight_on();
-#endif
+ /* Leave all lights as set by the bootloader here. The settings load will
+ * call the appropriate backlight_set_*() functions, only changing light
+ * status if necessary. */
create_thread(backlight_thread, backlight_stack,
sizeof(backlight_stack), backlight_thread_name