summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorChristi Scarborough <christi@coraline.org>2005-02-16 12:18:16 +0000
committerChristi Scarborough <christi@coraline.org>2005-02-16 12:18:16 +0000
commita38947114da645af2b5eec83b5216dcf2afc35aa (patch)
treeaf02aa6635e368329cacccfe2a0ff6e230e712e2 /firmware
parent5f73673eeb432c600f52037241850065e36ae854 (diff)
downloadrockbox-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 'firmware')
-rw-r--r--firmware/powermgmt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c
index ede0a508cb..2a15b9dfb4 100644
--- a/firmware/powermgmt.c
+++ b/firmware/powermgmt.c
@@ -447,7 +447,9 @@ static void car_adapter_mode_processing(void)
static void power_thread_rtc_process(void)
{
- rtc_check_alarm_flag();
+ if (rtc_check_alarm_flag()) {
+ rtc_enable_alarm(false);
+ }
}
#endif