diff options
author | Christi Scarborough <christi@coraline.org> | 2005-02-16 12:18:16 +0000 |
---|---|---|
committer | Christi Scarborough <christi@coraline.org> | 2005-02-16 12:18:16 +0000 |
commit | a38947114da645af2b5eec83b5216dcf2afc35aa (patch) | |
tree | af02aa6635e368329cacccfe2a0ff6e230e712e2 /apps/tree.c | |
parent | 5f73673eeb432c600f52037241850065e36ae854 (diff) | |
download | rockbox-a38947114da645af2b5eec83b5216dcf2afc35aa.tar.gz rockbox-a38947114da645af2b5eec83b5216dcf2afc35aa.zip |
Turn off the RTC alarm if it's gone off. Best not to have alarm events unless the user has specifically asked for them.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5973 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.c')
-rw-r--r-- | apps/tree.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c index 4ccd7025d5..f8459eea4a 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -436,8 +436,10 @@ static bool ask_resume(bool ask_once) | |||
436 | } | 436 | } |
437 | 437 | ||
438 | #ifdef HAVE_ALARM_MOD | 438 | #ifdef HAVE_ALARM_MOD |
439 | if ( rtc_check_alarm_started(true) ) | 439 | if ( rtc_check_alarm_started(true) ) { |
440 | rtc_enable_alarm(false); | ||
440 | return true; | 441 | return true; |
442 | } | ||
441 | #endif | 443 | #endif |
442 | 444 | ||
443 | /* always resume? */ | 445 | /* always resume? */ |