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

Method disable_joystick

OpenHD/ohd_telemetry/src/GroundTelemetry.cpp:442–451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

440 m_console->info("Joystick enabled");
441}
442void GroundTelemetry::disable_joystick() {
443 if (m_rc_joystick_sender == nullptr) {
444 m_console->warn("Joy already disabled");
445 return;
446 }
447 // Destruction might block, which is not ideal, but hey
448 m_console->debug("Disable joy begin");
449 m_rc_joystick_sender = nullptr;
450 m_console->debug("Disable joy end");
451}
452#endif

Callers

nothing calls this directly

Calls 1

debugMethod · 0.80

Tested by

no test coverage detected