summaryrefslogtreecommitdiffstats
path: root/firmware/powermgmt.c
diff options
context:
space:
mode:
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... */