diff options
Diffstat (limited to 'apps/root_menu.c')
-rw-r--r-- | apps/root_menu.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/apps/root_menu.c b/apps/root_menu.c index 2a8662a170..77a092018a 100644 --- a/apps/root_menu.c +++ b/apps/root_menu.c | |||
@@ -767,11 +767,20 @@ void root_menu(void) | |||
767 | } | 767 | } |
768 | #endif /* HAVE_RTC_ALARM */ | 768 | #endif /* HAVE_RTC_ALARM */ |
769 | 769 | ||
770 | #if defined(HAVE_HEADPHONE_DETECTION) || defined(HAVE_LINEOUT_DETECTION) | ||
771 | if (next_screen == GO_TO_WPS && global_settings.unplug_autoresume) | ||
772 | { | ||
773 | next_screen = GO_TO_ROOT; | ||
770 | #ifdef HAVE_HEADPHONE_DETECTION | 774 | #ifdef HAVE_HEADPHONE_DETECTION |
771 | if (next_screen == GO_TO_WPS && | 775 | if (headphones_inserted()) |
772 | (global_settings.unplug_autoresume && !headphones_inserted() )) | 776 | next_screen = GO_TO_WPS; |
773 | next_screen = GO_TO_ROOT; | 777 | #endif |
778 | #ifdef HAVE_LINEOUT_DETECTION | ||
779 | if (lineout_inserted()) | ||
780 | next_screen = GO_TO_WPS; | ||
774 | #endif | 781 | #endif |
782 | } | ||
783 | #endif /*(HAVE_HEADPHONE_DETECTION) || (HAVE_LINEOUT_DETECTION)*/ | ||
775 | 784 | ||
776 | while (true) | 785 | while (true) |
777 | { | 786 | { |