move sensors to class
This commit is contained in:
@@ -15,7 +15,6 @@ class Application {
|
||||
struct Config {
|
||||
uint16_t lcd_interval_ms;
|
||||
uint8_t lcd_contrast;
|
||||
|
||||
std::string lcd_port;
|
||||
std::string cpu_pciaddr;
|
||||
std::string gpu_pciaddr;
|
||||
@@ -48,11 +47,12 @@ class Application {
|
||||
};
|
||||
|
||||
Config m_config; // m_ is prefix for member variable
|
||||
Control m_control;
|
||||
Control m_control{};
|
||||
Sensors m_sensors{};
|
||||
|
||||
static void hassThread(const std::stop_token& st, Sensors& s);
|
||||
void sensorsThread(const std::stop_token& st, Sensors& s);
|
||||
void displayThread(const std::stop_token& st, Sensors& s);
|
||||
void hassThread(const std::stop_token& st);
|
||||
void sensorsThread(const std::stop_token& st);
|
||||
void displayThread(const std::stop_token& st);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user