- simple-display: simplify initialization of has_lcd

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2021-02-15 23:52:18 +01:00
committed by Thilo Graf
parent 8e65fb4552
commit b731384973

View File

@@ -105,18 +105,10 @@ 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
has_lcd = false;
mode = MODE_TVRADIO;
switch_name_time_cnt = 0;