summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-07-15 05:24:34 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-07-15 05:24:34 +0000
commit272d6f11cde5f963e8fc4892db60943edd259672 (patch)
treefde5445679c587408be9e7ebb5c36d67a3ab8934
parent246391de2cdcf45c438cccccae75055ca54471b3 (diff)
downloadrockbox-272d6f11cde5f963e8fc4892db60943edd259672.zip
rockbox-272d6f11cde5f963e8fc4892db60943edd259672.tar.gz
rockbox-272d6f11cde5f963e8fc4892db60943edd259672.tar.bz2
rockbox-272d6f11cde5f963e8fc4892db60943edd259672.tar.xz
Now turns off the backlight when the sleeptimer expires with the charger attached
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4884 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/powermgmt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c
index c321f60..a093fe2 100644
--- a/firmware/powermgmt.c
+++ b/firmware/powermgmt.c
@@ -342,6 +342,7 @@ static void handle_auto_poweroff(void)
{
DEBUGF("Sleep timer timeout. Stopping...\n");
set_sleep_timer(0);
+ backlight_off(); /* Nighty, nighty... */
}
else
{