| 440 | m_console->info("Joystick enabled"); |
| 441 | } |
| 442 | void 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 |