| 68 | } |
| 69 | |
| 70 | SerialEndpoint::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 | |
| 80 | SerialEndpoint::~SerialEndpoint() { stop(); } |
| 81 |