summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2008-07-10 02:33:00 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2008-07-10 02:33:00 +0000
commit5cb85a81d298d4f8d27b7e7e5e0038f2032c75fa (patch)
tree3c94b83403d665ffaa9a1a00fda12fb26071b3a9
parent145827d2a416dcd3556ae9abfd36595453afa67d (diff)
downloadrockbox-5cb85a81d298d4f8d27b7e7e5e0038f2032c75fa.zip
rockbox-5cb85a81d298d4f8d27b7e7e5e0038f2032c75fa.tar.gz
rockbox-5cb85a81d298d4f8d27b7e7e5e0038f2032c75fa.tar.bz2
rockbox-5cb85a81d298d4f8d27b7e7e5e0038f2032c75fa.tar.xz
fix the sleeptimer which got broken in r17872
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18006 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/powermgmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c
index 523a620..6366ea9 100644
--- a/firmware/powermgmt.c
+++ b/firmware/powermgmt.c
@@ -467,7 +467,7 @@ static void handle_auto_poweroff(void)
if(TIME_AFTER(current_tick, sleeptimer_endtick))
{
audio_stop();
- if (!usb_inserted()
+ if (usb_inserted()
#if CONFIG_CHARGING && !defined(HAVE_POWEROFF_WHILE_CHARGING)
|| ((charger_input_state == CHARGER) ||
(charger_input_state == CHARGER_PLUGGED))