lcd4linux: migrate lcd4linux(bool) to class member

This commit is contained in:
2021-06-08 16:55:35 +02:00
parent 30416f9e47
commit f968bc0b40
2 changed files with 2 additions and 3 deletions

View File

@@ -1246,7 +1246,7 @@ std::string CLCD4l::hexStrA2A(unsigned char data)
return std::string(hexstr); return std::string(hexstr);
} }
void lcd4linux(bool run) void CLCD4l::lcd4linux(bool run)
{ {
const char *buf = "lcd4linux"; const char *buf = "lcd4linux";
const char *conf = "/etc/lcd4linux.conf"; const char *conf = "/etc/lcd4linux.conf";

View File

@@ -33,7 +33,6 @@
#include <string> #include <string>
#include <thread> #include <thread>
static void lcd4linux(bool run);
class CLCD4l class CLCD4l
{ {
@@ -67,7 +66,7 @@ class CLCD4l
int GetMaxBrightness(); int GetMaxBrightness();
void ResetParseID() { m_ParseID = 0; } void ResetParseID() { m_ParseID = 0; }
static void lcd4linux(bool run);
private: private:
std::thread *thrLCD4l; std::thread *thrLCD4l;
static void* LCD4lProc(void *arg); static void* LCD4lProc(void *arg);