From d67db1a5f866e1961553488c46e9772d71824b10 Mon Sep 17 00:00:00 2001 From: Drath Date: Fri, 2 Jan 2026 19:21:35 +0100 Subject: [PATCH] refactor + todo --- include/app.hpp | 2 +- main.cpp | 4 ++-- src/app.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/app.hpp b/include/app.hpp index 6d63354..0660d80 100644 --- a/include/app.hpp +++ b/include/app.hpp @@ -21,7 +21,7 @@ struct sensors { std::mutex mtx; // making sure the struct isnt accessed by multiple threads at once }; -void start(); +void run(); } // namespace app diff --git a/main.cpp b/main.cpp index 4573150..ced20a3 100644 --- a/main.cpp +++ b/main.cpp @@ -1,6 +1,6 @@ #include - +// put app in a class w a constructor for all the basic params int main() { - app::start(); + app::run(); return 0; } diff --git a/src/app.cpp b/src/app.cpp index 66d8541..5fa0bd4 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -152,7 +152,7 @@ void displayThread(const std::stop_token& st, app::sensors& s) { lcd.flushBuf(); } -void start() { +void run() { applog(LOG::START, "Application started"); std::signal(SIGINT, app::signalHandler); std::signal(SIGTERM, app::signalHandler);