| 373 | } |
| 374 | |
| 375 | void SerialEndpointManager::disable() { |
| 376 | std::lock_guard<std::mutex> guard(m_serial_endpoint_mutex); |
| 377 | if (m_serial_endpoint != nullptr) { |
| 378 | m_console->info("Stopping already existing FC UART"); |
| 379 | m_serial_endpoint->stop(); |
| 380 | m_serial_endpoint.reset(); |
| 381 | m_serial_endpoint = nullptr; |
| 382 | } |
| 383 | } |
| 384 | |
| 385 | void SerialEndpointManager::configure(const SerialEndpoint::HWOptions& options, |
| 386 | const std::string& tag, |
no test coverage detected