- lcd4l: add and use wrapper functions to handle /tmp/lcd/menu

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2021-09-18 21:52:01 +02:00
committed by Thilo Graf
parent da67aa4725
commit 019644334f
6 changed files with 26 additions and 11 deletions

View File

@@ -979,7 +979,7 @@ int CChannelList::show()
cGLCD::unlockChannel();
#endif
#ifdef ENABLE_LCD4LINUX
CLCD4l::getInstance()->RemoveFile("/tmp/lcd/menu");
CLCD4l::getInstance()->RemoveMenuFile();
#endif
if(!dont_hide){
@@ -2264,7 +2264,7 @@ void CChannelList::updateVfd()
#endif
#ifdef ENABLE_LCD4LINUX
if (g_settings.lcd4l_support)
CLCD4l::getInstance()->CreateFile("/tmp/lcd/menu", chan->getName().c_str(), g_settings.lcd4l_convert);
CLCD4l::getInstance()->CreateMenuFile(chan->getName().c_str(), g_settings.lcd4l_convert);
#endif
}