make it stop complainign

This commit is contained in:
2026-01-03 15:58:08 +01:00
parent 833b39be66
commit 00d94bbe05
2 changed files with 2 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ class Application {
Config m_config; // m_ is prefix for member variable
Control m_control;
void hassThread(const std::stop_token& st, Sensors& s);
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);
};

View File

@@ -157,7 +157,7 @@ void Application::Run() {
std::function<void(std::stop_token, Sensors&)> funcs[] = {
[this](const std::stop_token& st, Sensors& s) { displayThread(st, s); },
[this](const std::stop_token& st, Sensors& s) { sensorsThread(st, s); },
[this](const std::stop_token& st, Sensors& s) { hassThread(st, s); },
[](const std::stop_token& st, Sensors& s) { hassThread(st, s); },
};
// start threads in order