| 33 | #include "openhd_spdlog_include.h" |
| 34 | |
| 35 | int main() { |
| 36 | const auto platform = OHDPlatform::instance(); |
| 37 | const auto provider = std::make_unique<OnboardComputerStatusProvider>(); |
| 38 | |
| 39 | static bool quit = false; |
| 40 | signal(SIGTERM, [](int sig) { quit = true; }); |
| 41 | while (!quit) { |
| 42 | auto tmp = provider->get_current_status(); |
| 43 | LogCustomOHDMessages::logOnboardComputerStatus(tmp); |
| 44 | std::this_thread::sleep_for(std::chrono::seconds(1)); |
| 45 | } |
| 46 | return 0; |
| 47 | } |
nothing calls this directly
no test coverage detected