diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2008-07-10 02:33:00 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2008-07-10 02:33:00 +0000 |
commit | 5cb85a81d298d4f8d27b7e7e5e0038f2032c75fa (patch) | |
tree | 3c94b83403d665ffaa9a1a00fda12fb26071b3a9 | |
parent | 145827d2a416dcd3556ae9abfd36595453afa67d (diff) | |
download | rockbox-5cb85a81d298d4f8d27b7e7e5e0038f2032c75fa.tar.gz rockbox-5cb85a81d298d4f8d27b7e7e5e0038f2032c75fa.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
467 | if(TIME_AFTER(current_tick, sleeptimer_endtick)) | 467 | if(TIME_AFTER(current_tick, sleeptimer_endtick)) |
468 | { | 468 | { |
469 | audio_stop(); | 469 | audio_stop(); |
470 | if (!usb_inserted() | 470 | if (usb_inserted() |
471 | #if CONFIG_CHARGING && !defined(HAVE_POWEROFF_WHILE_CHARGING) | 471 | #if CONFIG_CHARGING && !defined(HAVE_POWEROFF_WHILE_CHARGING) |
472 | || ((charger_input_state == CHARGER) || | 472 | || ((charger_input_state == CHARGER) || |
473 | (charger_input_state == CHARGER_PLUGGED)) | 473 | (charger_input_state == CHARGER_PLUGGED)) |