make it stop complainign
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user