forked from len0rd/rockbox
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:
parent
145827d2a4
commit
5cb85a81d2
1 changed files with 1 additions and 1 deletions
|
|
@ -467,7 +467,7 @@ static void handle_auto_poweroff(void)
|
||||||
if(TIME_AFTER(current_tick, sleeptimer_endtick))
|
if(TIME_AFTER(current_tick, sleeptimer_endtick))
|
||||||
{
|
{
|
||||||
audio_stop();
|
audio_stop();
|
||||||
if (!usb_inserted()
|
if (usb_inserted()
|
||||||
#if CONFIG_CHARGING && !defined(HAVE_POWEROFF_WHILE_CHARGING)
|
#if CONFIG_CHARGING && !defined(HAVE_POWEROFF_WHILE_CHARGING)
|
||||||
|| ((charger_input_state == CHARGER) ||
|
|| ((charger_input_state == CHARGER) ||
|
||||||
(charger_input_state == CHARGER_PLUGGED))
|
(charger_input_state == CHARGER_PLUGGED))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue