From eeed057b8b1478cd863d36089b4a21dc4a95d6aa Mon Sep 17 00:00:00 2001 From: Christi Scarborough Date: Sat, 5 Feb 2005 19:57:19 +0000 Subject: 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 --- apps/tree.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apps/tree.c') 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(); -- cgit v1.2.3