summaryrefslogtreecommitdiff
path: root/firmware/powermgmt.c
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2003-03-07 14:13:58 +0000
committerBjörn Stenberg <bjorn@haxx.se>2003-03-07 14:13:58 +0000
commitb443ba46ecabf3460ed8664da64e67f76ed50e43 (patch)
tree721530586b447a5c7c1f8af017ff06fd65a6d406 /firmware/powermgmt.c
parent050cc9080186ae4b750d4cd6e0cb84ee420e451a (diff)
Don't reboot if charger is connected when sleep timer expires, just stop the music.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3397 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/powermgmt.c')
-rw-r--r--firmware/powermgmt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c
index c9df60fba3..e04e520ad1 100644
--- a/firmware/powermgmt.c
+++ b/firmware/powermgmt.c
@@ -318,8 +318,8 @@ static void handle_auto_poweroff(void)
{
if(charger_is_inserted)
{
- DEBUGF("Sleep timer timeout. Rebooting...\n");
- system_reboot();
+ DEBUGF("Sleep timer timeout. Stopping...\n");
+ mpeg_stop();
}
else
{