lcd4l: introduce getInstance()

Origin commit data
------------------
Branch: ni/coolstream
Commit: a1bb64a4d2
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-06-13 (Sun, 13 Jun 2021)

Origin message was:
------------------
- lcd4l: introduce getInstance()

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2021-06-13 23:28:24 +02:00
parent 0862617cc5
commit 50a19c69d7
9 changed files with 28 additions and 34 deletions

View File

@@ -88,7 +88,6 @@
#ifdef ENABLE_LCD4LINUX
#include "driver/lcd4l.h"
extern CLCD4l *LCD4l;
#endif
extern CBouquetList * bouquetList; /* neutrino.cpp */
@@ -980,7 +979,7 @@ int CChannelList::show()
cGLCD::unlockChannel();
#endif
#ifdef ENABLE_LCD4LINUX
LCD4l->RemoveFile("/tmp/lcd/menu");
CLCD4l::getInstance()->RemoveFile("/tmp/lcd/menu");
#endif
if(!dont_hide){
@@ -2268,7 +2267,7 @@ void CChannelList::updateVfd()
#endif
#ifdef ENABLE_LCD4LINUX
if (g_settings.lcd4l_support)
LCD4l->CreateFile("/tmp/lcd/menu", chan->getName().c_str(), g_settings.lcd4l_convert);
CLCD4l::getInstance()->CreateFile("/tmp/lcd/menu", chan->getName().c_str(), g_settings.lcd4l_convert);
#endif
}