summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2021-10-24 00:12:06 -0400
committerWilliam Wilgus <wilgus.william@gmail.com>2021-10-24 00:12:06 -0400
commit1cec2c7a731645e17b1967dc40c49a85aeb24de7 (patch)
treea8293f6ef19a0e45618fe9744fdff6ce410f7df8
parent3e10ecb82a78edb1ea266bd491cce2504d52cbbd (diff)
downloadrockbox-1cec2c7a731645e17b1967dc40c49a85aeb24de7.tar.gz
rockbox-1cec2c7a731645e17b1967dc40c49a85aeb24de7.zip
root_menu fix red for devices with RTC_ALARM but no tuner or recording
Change-Id: I36b21c3d1ef4a4ce3b275a0ee793fbf9538b69ae
-rw-r--r--apps/root_menu.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/root_menu.c b/apps/root_menu.c
index c72aa07bfa..15d03a7cda 100644
--- a/apps/root_menu.c
+++ b/apps/root_menu.c
@@ -766,11 +766,15 @@ static int root_menu_setup_screens(void)
#endif
add_event(PLAYBACK_EVENT_TRACK_CHANGE, rootmenu_track_changed_callback);
#ifdef HAVE_RTC_ALARM
+ int alarm_wake_up_screen = 0;
if ( rtc_check_alarm_started(true) )
{
rtc_enable_alarm(false);
- switch (global_settings.alarm_wake_up_screen)
+#if (defined(HAVE_RECORDING) || CONFIG_TUNER)
+ alarm_wake_up_screen = global_settings.alarm_wake_up_screen;
+#endif
+ switch (alarm_wake_up_screen)
{
#if CONFIG_TUNER
case ALARM_START_FM: