root_menu fix red for devices with RTC_ALARM but no tuner or recording
Change-Id: I36b21c3d1ef4a4ce3b275a0ee793fbf9538b69ae
This commit is contained in:
parent
3e10ecb82a
commit
1cec2c7a73
|
@ -766,11 +766,15 @@ static int root_menu_setup_screens(void)
|
||||||
#endif
|
#endif
|
||||||
add_event(PLAYBACK_EVENT_TRACK_CHANGE, rootmenu_track_changed_callback);
|
add_event(PLAYBACK_EVENT_TRACK_CHANGE, rootmenu_track_changed_callback);
|
||||||
#ifdef HAVE_RTC_ALARM
|
#ifdef HAVE_RTC_ALARM
|
||||||
|
int alarm_wake_up_screen = 0;
|
||||||
if ( rtc_check_alarm_started(true) )
|
if ( rtc_check_alarm_started(true) )
|
||||||
{
|
{
|
||||||
rtc_enable_alarm(false);
|
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
|
#if CONFIG_TUNER
|
||||||
case ALARM_START_FM:
|
case ALARM_START_FM:
|
||||||
|
|
Loading…
Reference in New Issue