move sensors to class

This commit is contained in:
2026-01-03 16:24:00 +01:00
parent 149a8f8b71
commit b8589181a7
2 changed files with 57 additions and 56 deletions

View File

@@ -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