MCPcopy Create free account
hub / github.com/OpenHD/OpenHD / SerialEndpoint

Method SerialEndpoint

OpenHD/ohd_telemetry/src/endpoints/SerialEndpoint.cpp:70–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70SerialEndpoint::SerialEndpoint(std::string TAG1,
71 SerialEndpoint::HWOptions options1)
72 : MEndpoint(std::move(TAG1)), m_options(std::move(options1)) {
73 m_console = openhd::log::create_or_get(TAG);
74 assert(m_console);
75 // m_limited_rate_logger=std::make_unique<openhd::log::LimitedRateLogger>(m_console,std::chrono::milliseconds(1000));
76 m_console->info("created with {}", m_options.to_string());
77 start();
78}
79
80SerialEndpoint::~SerialEndpoint() { stop(); }
81

Callers

nothing calls this directly

Calls 1

to_stringMethod · 0.45

Tested by

no test coverage detected