1
0
Fork 0
forked from len0rd/rockbox

Bug fix: Idle timeout would stop paused playback when charger was connected

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4066 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2003-11-25 12:00:25 +00:00
parent 152f07e478
commit 53989844b4

View file

@ -315,17 +315,10 @@ static void handle_auto_poweroff(void)
!sleeptimer_active)))
{
if(TIME_AFTER(current_tick, last_keypress + timeout) &&
TIME_AFTER(current_tick, last_disk_activity + timeout))
TIME_AFTER(current_tick, last_disk_activity + timeout) &&
TIME_AFTER(current_tick, last_charge_time + timeout))
{
if (mpeg_stat == (MPEG_STATUS_PLAY | MPEG_STATUS_PAUSE))
{
mpeg_stop();
}
if (TIME_AFTER(current_tick, last_charge_time + timeout))
{
power_off();
}
power_off();
}
}
else