summaryrefslogtreecommitdiffstats
path: root/firmware/powermgmt.c
diff options
context:
space:
mode:
authorThomas Jarosch <tomj@simonv.com>2011-03-03 00:33:58 +0000
committerThomas Jarosch <tomj@simonv.com>2011-03-03 00:33:58 +0000
commitf96c254b7696a12da5f9d168a2cdae6746aa23ee (patch)
tree0d11935a9bf35fd1fd79676d3f67ec5f06e9c87f /firmware/powermgmt.c
parent84926583cfcc8e1f2bff9f7743002880486e0971 (diff)
downloadrockbox-f96c254b7696a12da5f9d168a2cdae6746aa23ee.tar.gz
rockbox-f96c254b7696a12da5f9d168a2cdae6746aa23ee.tar.bz2
rockbox-f96c254b7696a12da5f9d168a2cdae6746aa23ee.zip
Fix red in bootloader
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29508 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/powermgmt.c')
-rw-r--r--firmware/powermgmt.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c
index 215f056c33..b0fea5949f 100644
--- a/firmware/powermgmt.c
+++ b/firmware/powermgmt.c
@@ -33,7 +33,6 @@
#include "usb.h"
#include "powermgmt.h"
#include "backlight.h"
-#include "bookmark.h"
#include "lcd.h"
#include "rtc.h"
#if CONFIG_TUNER
@@ -48,6 +47,9 @@
#if (CONFIG_PLATFORM & PLATFORM_HOSTED)
#include <time.h>
#endif
+#ifndef BOOTLOADER
+#include "bookmark.h"
+#endif
#if (defined(IAUDIO_X5) || defined(IAUDIO_M5)) && !defined (SIMULATOR)
#include "lcd-remote-target.h"
@@ -850,7 +852,9 @@ void handle_sleep_timer(void)
#endif
) {
DEBUGF("Sleep timer timeout. Stopping...\n");
+#ifndef BOOTLOADER
bookmark_autobookmark(false);
+#endif
audio_stop();
set_sleep_timer(0);
backlight_off(); /* Nighty, nighty... */