1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Christi Scarborough 2005-02-16 12:18:16 +00:00
parent 5f73673eeb
commit a38947114d
2 changed files with 6 additions and 2 deletions

View file

@ -436,8 +436,10 @@ static bool ask_resume(bool ask_once)
}
#ifdef HAVE_ALARM_MOD
if ( rtc_check_alarm_started(true) )
if ( rtc_check_alarm_started(true) ) {
rtc_enable_alarm(false);
return true;
}
#endif
/* always resume? */

View file

@ -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