From b731384973a067c0e18ee62118075a77dd393daf Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Mon, 15 Feb 2021 23:52:18 +0100 Subject: [PATCH] - simple-display: simplify initialization of has_lcd Signed-off-by: Thilo Graf --- src/driver/simple_display.cpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/driver/simple_display.cpp b/src/driver/simple_display.cpp index 5e2738bc8..c99783c31 100644 --- a/src/driver/simple_display.cpp +++ b/src/driver/simple_display.cpp @@ -105,17 +105,9 @@ static void replace_umlauts(std::string &s) CLCD::CLCD() { /* do not show menu in neutrino...,at Line Display true, because there is th GLCD Menu */ - if ( - g_info.hw_caps->display_type == HW_DISPLAY_LINE_TEXT - || g_info.hw_caps->display_type == HW_DISPLAY_LED_NUM - || g_info.hw_caps->display_type == HW_DISPLAY_LED_ONLY - ) - { - if (g_info.hw_caps->display_type == HW_DISPLAY_LINE_TEXT) - has_lcd = true; - else - has_lcd = false; - } else + if (g_info.hw_caps->display_type == HW_DISPLAY_LINE_TEXT) + has_lcd = true; + else has_lcd = false; mode = MODE_TVRADIO;