refactor + todo

This commit is contained in:
2026-01-02 19:21:35 +01:00
parent c0a2c338ee
commit d67db1a5f8
3 changed files with 4 additions and 4 deletions

View File

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

View File

@@ -1,6 +1,6 @@
#include <app.hpp>
// put app in a class w a constructor for all the basic params
int main() {
app::start();
app::run();
return 0;
}

View File

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