mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
lcd4l: introduce getInstance()
Origin commit data
------------------
Commit: a1bb64a4d2
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-06-13 (Sun, 13 Jun 2021)
Origin message was:
------------------
- lcd4l: introduce getInstance()
This commit is contained in:
@@ -174,7 +174,6 @@ CInfoIcons *InfoIcons;
|
||||
|
||||
#ifdef ENABLE_LCD4LINUX
|
||||
#include "driver/lcd4l.h"
|
||||
CLCD4l *LCD4l;
|
||||
#endif
|
||||
|
||||
int allow_flash = 1;
|
||||
@@ -3128,11 +3127,8 @@ TIMER_START();
|
||||
SHTDCNT::getInstance()->init();
|
||||
|
||||
#ifdef ENABLE_LCD4LINUX
|
||||
if (LCD4l == NULL)
|
||||
LCD4l = new CLCD4l();
|
||||
|
||||
if (g_settings.lcd4l_support)
|
||||
LCD4l->StartLCD4l();
|
||||
CLCD4l::getInstance()->StartLCD4l();
|
||||
#endif
|
||||
|
||||
CZapit::getInstance()->SetScanSDT(g_settings.enable_sdt);
|
||||
@@ -5494,13 +5490,8 @@ void CNeutrinoApp::stopDaemonsForFlash()
|
||||
#ifdef ENABLE_LCD4LINUX
|
||||
void stop_lcd4l_support()
|
||||
{
|
||||
if(LCD4l) {
|
||||
if(g_settings.lcd4l_support) {
|
||||
LCD4l->StopLCD4l();
|
||||
}
|
||||
delete LCD4l;
|
||||
}
|
||||
LCD4l = NULL;
|
||||
if (g_settings.lcd4l_support)
|
||||
CLCD4l::getInstance()->StopLCD4l();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user