diff options
Diffstat (limited to 'sw/eval-clock-cw-tx/src/main.rs')
-rw-r--r-- | sw/eval-clock-cw-tx/src/main.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sw/eval-clock-cw-tx/src/main.rs b/sw/eval-clock-cw-tx/src/main.rs index 716d184..2dce7bc 100644 --- a/sw/eval-clock-cw-tx/src/main.rs +++ b/sw/eval-clock-cw-tx/src/main.rs @@ -197,7 +197,7 @@ fn main() -> ! { ui, cw_pwm, cw_keyer : cw::Keyer::new(12, TICKS_PER_SECOND), - cw_paddle_tip, cw_paddle_ring, ptt_out, seq_switch, led + cw_paddle_tip, cw_paddle_ring, ptt_out, seq_switch, led, }; si_clock::SiClock::new(i2c_busmanager.acquire_i2c(), 0, shared.state.vfo_display()) @@ -264,6 +264,12 @@ fn main() -> ! { update_disp_required = true; } + match (previous_state.clone(), state.sequence_state.clone()) { + (SequenceState::Rx, SequenceState::Switching(_)) => usb.send_transmit(), + (SequenceState::Switching(_), SequenceState::Rx) => usb.send_receive(), + _ => (), + } + let vfo = state.vfo_display(); if previous_vfo != vfo || previous_state != state.sequence_state { siclock.set_vfo(state.vfo_siclock()); |