- lcd4linux: fix first start

Signed-off-by: Thilo Graf <dbt@novatux.de>

# Conflicts:
#	src/driver/lcd4l.cpp
This commit is contained in:
svenhoefer
2021-06-05 22:33:52 +02:00
committed by Thilo Graf
parent d218048c8a
commit eaa78a1502
2 changed files with 6 additions and 5 deletions

View File

@@ -664,7 +664,7 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
/* ----------------------------------------------------------------- */
if (newID || parseID == NeutrinoModes::mode_audio || parseID == NeutrinoModes::mode_ts)
if (firstRun || newID || parseID == NeutrinoModes::mode_audio || parseID == NeutrinoModes::mode_ts)
{
std::string Service = "";
int ChannelNr = 0;
@@ -852,6 +852,7 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
case 1:
Layout = DisplayType + "user01" + eol;
break;
case 0:
default:
Layout = DisplayType + "standard" + eol;
}

View File

@@ -3056,11 +3056,11 @@ TIMER_START();
SHTDCNT::getInstance()->init();
#ifdef ENABLE_LCD4LINUX
if (g_settings.lcd4l_support) {
if (LCD4l == NULL)
LCD4l = new CLCD4l();
if (g_settings.lcd4l_support)
LCD4l->StartLCD4l();
}
#endif
CZapit::getInstance()->SetScanSDT(g_settings.enable_sdt);