From 5cb85a81d298d4f8d27b7e7e5e0038f2032c75fa Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Thu, 10 Jul 2008 02:33:00 +0000 Subject: [PATCH] fix the sleeptimer which got broken in r17872 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18006 a1c6a512-1295-4272-9138-f99709370657 --- firmware/powermgmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index 523a62007a..6366ea9bd0 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))