mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
- lcd4l: rename new variable wait4lcd => wait4daemon
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -297,7 +297,7 @@ void CLCD4l::Init()
|
|||||||
if (!access(LCD_DATADIR, F_OK) == 0)
|
if (!access(LCD_DATADIR, F_OK) == 0)
|
||||||
mkdir(LCD_DATADIR, 0755);
|
mkdir(LCD_DATADIR, 0755);
|
||||||
|
|
||||||
wait4lcd = true;
|
wait4daemon = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void* CLCD4l::LCD4lProc(void* arg)
|
void* CLCD4l::LCD4lProc(void* arg)
|
||||||
@@ -322,7 +322,8 @@ void* CLCD4l::LCD4lProc(void* arg)
|
|||||||
{
|
{
|
||||||
if (g_settings.lcd4l_support == 1) // automatic
|
if (g_settings.lcd4l_support == 1) // automatic
|
||||||
{
|
{
|
||||||
if (PLCD4l->GetWaitStatus()) {
|
if (PLCD4l->GetWaitStatus())
|
||||||
|
{
|
||||||
//printf("[CLCD4l] %s: waiting for lcd4linux\n", __FUNCTION__);
|
//printf("[CLCD4l] %s: waiting for lcd4linux\n", __FUNCTION__);
|
||||||
sleep(10);
|
sleep(10);
|
||||||
continue;
|
continue;
|
||||||
|
@@ -56,7 +56,7 @@ class CLCD4l
|
|||||||
void StartLCD4l();
|
void StartLCD4l();
|
||||||
void StopLCD4l();
|
void StopLCD4l();
|
||||||
void SwitchLCD4l();
|
void SwitchLCD4l();
|
||||||
void ForceRun() { wait4lcd = false; }
|
void ForceRun() { wait4daemon = false; }
|
||||||
|
|
||||||
int CreateFile(const char *file, std::string content = "", bool convert = false);
|
int CreateFile(const char *file, std::string content = "", bool convert = false);
|
||||||
int RemoveFile(const char *file);
|
int RemoveFile(const char *file);
|
||||||
@@ -70,7 +70,7 @@ class CLCD4l
|
|||||||
static void* LCD4lProc(void *arg);
|
static void* LCD4lProc(void *arg);
|
||||||
|
|
||||||
struct tm *tm_struct;
|
struct tm *tm_struct;
|
||||||
bool wait4lcd;
|
bool wait4daemon;
|
||||||
|
|
||||||
// Functions
|
// Functions
|
||||||
void Init();
|
void Init();
|
||||||
@@ -84,8 +84,8 @@ class CLCD4l
|
|||||||
void strReplace(std::string &orig, const std::string &fstr, const std::string &rstr);
|
void strReplace(std::string &orig, const std::string &fstr, const std::string &rstr);
|
||||||
bool WriteFile(const char *file, std::string content = "", bool convert = false);
|
bool WriteFile(const char *file, std::string content = "", bool convert = false);
|
||||||
|
|
||||||
void SetWaitStatus(bool wait) { wait4lcd = wait; }
|
void SetWaitStatus(bool wait) { wait4daemon = wait; }
|
||||||
bool GetWaitStatus() { return wait4lcd; }
|
bool GetWaitStatus() { return wait4daemon; }
|
||||||
|
|
||||||
// Variables
|
// Variables
|
||||||
uint64_t m_ParseID;
|
uint64_t m_ParseID;
|
||||||
|
Reference in New Issue
Block a user