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

Method get_link_handle

OpenHD/ohd_interface/src/ohd_interface.cpp:213–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213std::shared_ptr<OHDLink> OHDInterface::get_link_handle() {
214 if (m_ethernet_link) {
215 m_console->warn("Using alternative Link: Ethernet");
216 return m_ethernet_link;
217 }
218 if (m_wb_link) {
219 // m_console->warn("Using Link: OpenHD-WifiBroadCast");
220 return m_wb_link;
221 }
222 if (m_microhard_link) {
223 m_console->warn("Using alternative Link: Microhard");
224 return m_microhard_link;
225 }
226 return nullptr;
227}
228
229void OHDInterface::generate_keys_from_pw_if_exists_and_delete() {
230 // Make sure this stupid sodium init has been called

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected