Don't call apps/ code from firmware/
Replace audio_stop() with audio_pause() in the sleep timer handler for the connected charger case and remove recently added bookmarking code. We don't power down anyway and a paused playback state is still eligible for automatic bookmark creation if the user later on removes the charger and waits for idle poweroff. Hopefully other devs can sleep at night now. Or maybe I should leave that change in there so they stay awake and hack on rockbox... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29555 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
36d98fa7d0
commit
98cf1a14b0
1 changed files with 1 additions and 7 deletions
|
@ -47,9 +47,6 @@
|
||||||
#if (CONFIG_PLATFORM & PLATFORM_HOSTED)
|
#if (CONFIG_PLATFORM & PLATFORM_HOSTED)
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#endif
|
#endif
|
||||||
#ifndef BOOTLOADER
|
|
||||||
#include "bookmark.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if (defined(IAUDIO_X5) || defined(IAUDIO_M5)) && !defined (SIMULATOR)
|
#if (defined(IAUDIO_X5) || defined(IAUDIO_M5)) && !defined (SIMULATOR)
|
||||||
#include "lcd-remote-target.h"
|
#include "lcd-remote-target.h"
|
||||||
|
@ -803,10 +800,7 @@ static void handle_sleep_timer(void)
|
||||||
#endif
|
#endif
|
||||||
) {
|
) {
|
||||||
DEBUGF("Sleep timer timeout. Stopping...\n");
|
DEBUGF("Sleep timer timeout. Stopping...\n");
|
||||||
#ifndef BOOTLOADER
|
audio_pause();
|
||||||
bookmark_autobookmark(false);
|
|
||||||
#endif
|
|
||||||
audio_stop();
|
|
||||||
set_sleep_timer(0);
|
set_sleep_timer(0);
|
||||||
backlight_off(); /* Nighty, nighty... */
|
backlight_off(); /* Nighty, nighty... */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue