summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorChristi Scarborough <christi@coraline.org>2005-02-05 19:57:19 +0000
committerChristi Scarborough <christi@coraline.org>2005-02-05 19:57:19 +0000
commiteeed057b8b1478cd863d36089b4a21dc4a95d6aa (patch)
tree610e884315e2efa0eeff9a9ed5501dd4a5cbbdb6 /apps
parentc3c26262f45548ad9e920d0d635a745d6829227b (diff)
Bugfix: Resume does not prompt if the unit has woken due to the RTC alarm
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5799 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/tree.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c
index d59101f937..02899f87ca 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -60,6 +60,7 @@
#include "filetree.h"
#include "dbtree.h"
#include "recorder/recording.h"
+#include "rtc.h"
#ifdef HAVE_LCD_BITMAP
#include "widgets.h"
@@ -434,8 +435,11 @@ static bool ask_resume(bool ask_once)
return false;
}
+ if ( rtc_check_alarm_started(true) )
+ return true;
+
/* always resume? */
- if ( global_settings.resume == RESUME_ON )
+ if ( global_settings.resume == RESUME_ON)
return true;
lcd_clear_display();