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

Method disable

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

Source from the content-addressed store, hash-verified

373}
374
375void 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
385void SerialEndpointManager::configure(const SerialEndpoint::HWOptions& options,
386 const std::string& tag,

Callers 2

setup_uartMethod · 0.80
setup_uartMethod · 0.80

Calls 2

stopMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected