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