l4l: force update of output files if ...

lcd4linux is not running and display is changed in automatic mode


Origin commit data
------------------
Commit: 03281f959c
Author: GetAway <get-away@t-online.de>
Date: 2019-01-20 (Sun, 20 Jan 2019)
This commit is contained in:
GetAway
2019-01-20 23:33:59 +01:00
committed by vanhofen
parent 739616e3b9
commit 67ef2bed97
3 changed files with 17 additions and 3 deletions

View File

@@ -52,6 +52,7 @@ class CLCD4l
void StartLCD4l();
void StopLCD4l();
void SwitchLCD4l();
void ForceRun() { wait4lcd = false; }
int CreateFile(const char *file, std::string content = "", bool convert = false);
int RemoveFile(const char *file);
@@ -65,6 +66,7 @@ class CLCD4l
static void* LCD4lProc(void *arg);
struct tm *tm_struct;
bool wait4lcd;
// Functions
void Init();
@@ -78,6 +80,9 @@ class CLCD4l
void strReplace(std::string &orig, const std::string &fstr, const std::string &rstr);
bool WriteFile(const char *file, std::string content = "", bool convert = false);
void SetWaitStatus(bool wait) { wait4lcd = wait; }
bool GetWaitStatus() { return wait4lcd; }
// Variables
uint64_t m_ParseID;
int m_Mode;