- glcd.cpp: fix Warnung: enum-Konstante in booleschem Zusammenhang

This commit is contained in:
max_10
2022-11-20 22:13:22 +01:00
committed by Thilo Graf
parent deec8cc2c9
commit e66b92c097

View File

@@ -1096,7 +1096,7 @@ void cGLCD::Run(void)
scrollEpgOffset = 0; scrollEpgOffset = 0;
} }
if (CSectionsdClient::epgflags::has_current) if (info_CurrentNext.flags & CSectionsdClient::epgflags::has_current)
{ {
if ((info_CurrentNext.current_zeit.dauer > 0) && (info_CurrentNext.current_zeit.dauer < 86400)) if ((info_CurrentNext.current_zeit.dauer > 0) && (info_CurrentNext.current_zeit.dauer < 86400))
{ {
@@ -1123,7 +1123,7 @@ void cGLCD::Run(void)
Start = stagingStart = tmp_start; Start = stagingStart = tmp_start;
} }
if (CSectionsdClient::epgflags::has_next) if (info_CurrentNext.flags & CSectionsdClient::epgflags::has_next)
{ {
char tmp_end[6] = {0}; char tmp_end[6] = {0};
tm = localtime(&info_CurrentNext.next_zeit.startzeit); tm = localtime(&info_CurrentNext.next_zeit.startzeit);