From 1ee6040a847d386afc7d7e64945c3a5ff87aa6d7 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 4 Jun 2021 22:03:16 +0200 Subject: eval-kit: port variable speed VFO from picardy --- sw/eval-clock-cw-tx/src/state.rs | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'sw/eval-clock-cw-tx/src/state.rs') diff --git a/sw/eval-clock-cw-tx/src/state.rs b/sw/eval-clock-cw-tx/src/state.rs index 87527bf..44c64d2 100644 --- a/sw/eval-clock-cw-tx/src/state.rs +++ b/sw/eval-clock-cw-tx/src/state.rs @@ -13,13 +13,6 @@ pub enum VFOSelection { B, } -#[derive(Clone)] -pub enum TuneSpeed { - Slow, - Mid, - Fast -} - #[derive(PartialEq, Eq, Clone, Copy)] pub enum CWMode { StraightKey, @@ -52,7 +45,6 @@ pub struct State { pub vfo_b : u32, pub vfo_sel : VFOSelection, pub mode : Mode, - pub tune_speed : TuneSpeed, pub sequence_state : SequenceState, pub update_disp_counter : u8, pub cw_wpm : u32, @@ -66,10 +58,9 @@ impl State { vfo_sel : VFOSelection::A, vfo_a : INITIAL_VFO, vfo_b : INITIAL_VFO, - tune_speed : TuneSpeed::Mid, sequence_state : SequenceState::Rx, update_disp_counter : 0, - cw_wpm : 12, + cw_wpm : 14, } } @@ -97,14 +88,6 @@ impl State { } } - pub fn vfo_incr(&self) -> i32 { - match self.tune_speed { - TuneSpeed::Slow => 10, - TuneSpeed::Mid => 200, - TuneSpeed::Fast => 1000, - } - } - pub fn allow_feldhell_keying(&self) -> bool { self.sequence_state == SequenceState::Tx(SequenceMode::FeldHell) } -- cgit v1.2.3