fix the sleeptimer which got broken in r17872

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18006 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2008-07-10 02:33:00 +00:00
parent 145827d2a4
commit 5cb85a81d2

View file

@ -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))