summaryrefslogtreecommitdiff
path: root/apps/root_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/root_menu.c')
-rw-r--r--apps/root_menu.c23
1 files changed, 16 insertions, 7 deletions
diff --git a/apps/root_menu.c b/apps/root_menu.c
index b797d473a5..3b9f6eab36 100644
--- a/apps/root_menu.c
+++ b/apps/root_menu.c
@@ -152,13 +152,6 @@ static int wpsscrn(void* param)
152 DEBUGF("Resume index %X offset %X\n", 152 DEBUGF("Resume index %X offset %X\n",
153 global_status.resume_index, 153 global_status.resume_index,
154 global_status.resume_offset); 154 global_status.resume_offset);
155
156#ifdef HAVE_RTC_ALARM
157 if ( rtc_check_alarm_started(true) ) {
158 rtc_enable_alarm(false);
159 }
160#endif
161
162 if (playlist_resume() != -1) 155 if (playlist_resume() != -1)
163 { 156 {
164 playlist_start(global_status.resume_index, 157 playlist_start(global_status.resume_index,
@@ -329,6 +322,22 @@ void root_menu(void)
329 ret_val = (int)global_status.last_screen; 322 ret_val = (int)global_status.last_screen;
330 else ret_val = global_settings.start_in_screen - 2; 323 else ret_val = global_settings.start_in_screen - 2;
331 324
325#ifdef HAVE_RTC_ALARM
326 if ( rtc_check_alarm_started(true) )
327 {
328 rtc_enable_alarm(false);
329 ret_val = GO_TO_WPS;
330#if CONFIG_TUNER
331 if (global_settings.alarm_wake_up_screen == ALARM_START_FM)
332 ret_val = GO_TO_FM;
333#endif
334#ifdef HAVE_RECORDING
335 if (global_settings.alarm_wake_up_screen == ALARM_START_REC)
336 ret_val = GO_TO_RECSCREEN;
337#endif
338 }
339#endif /* HAVE_RTC_ALARM */
340
332 while (true) 341 while (true)
333 { 342 {
334 switch (ret_val) 343 switch (ret_val)