From 00d94bbe05d12c2bab85a9e64cbc2242ef2772df Mon Sep 17 00:00:00 2001 From: Drath Date: Sat, 3 Jan 2026 15:58:08 +0100 Subject: [PATCH] make it stop complainign --- include/app.hpp | 2 +- src/app.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/app.hpp b/include/app.hpp index 9ad0b79..4d27ae8 100644 --- a/include/app.hpp +++ b/include/app.hpp @@ -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); }; diff --git a/src/app.cpp b/src/app.cpp index d8fe146..ad8ae45 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -157,7 +157,7 @@ void Application::Run() { std::function 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