l4l: force update of output files if ...

lcd4linux is not running and display is changed in automatic mode
This commit is contained in:
GetAway
2019-01-20 16:28:50 +01:00
parent 84693c62e6
commit 9a8d5657f7
3 changed files with 17 additions and 3 deletions

View File

@@ -56,6 +56,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);
@@ -69,6 +70,7 @@ class CLCD4l
static void* LCD4lProc(void *arg);
struct tm *tm_struct;
bool wait4lcd;
// Functions
void Init();
@@ -82,6 +84,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;