root_menu fix red for devices with RTC_ALARM but no tuner or recording

Change-Id: I36b21c3d1ef4a4ce3b275a0ee793fbf9538b69ae
This commit is contained in:
William Wilgus 2021-10-24 00:12:06 -04:00
parent 3e10ecb82a
commit 1cec2c7a73
1 changed files with 5 additions and 1 deletions

View File

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