diff options
Diffstat (limited to 'sw/eval-clock-cw-tx/src/ui.rs')
-rw-r--r-- | sw/eval-clock-cw-tx/src/ui.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/eval-clock-cw-tx/src/ui.rs b/sw/eval-clock-cw-tx/src/ui.rs index 3cc8c90..38355e5 100644 --- a/sw/eval-clock-cw-tx/src/ui.rs +++ b/sw/eval-clock-cw-tx/src/ui.rs @@ -170,7 +170,8 @@ impl UI { if button_updates.c { let (new_ui_sel, new_filter_shift) = match (state.ui_sel, state.mode) { (UISelection::Mode, Mode::CW(CWMode::StraightKey)) => (UISelection::Mode, Mode::CW(CWMode::Iambic)), - (UISelection::Mode, Mode::CW(CWMode::Iambic)) => (UISelection::Mode, Mode::CW(CWMode::StraightKey)), + (UISelection::Mode, Mode::CW(CWMode::Iambic)) => (UISelection::Mode, Mode::FeldHell), + (UISelection::Mode, Mode::FeldHell) => (UISelection::Mode, Mode::CW(CWMode::StraightKey)), (_, f) => (UISelection::Mode, f), }; @@ -203,7 +204,6 @@ impl UI { result } - // Returns true if bfo must be reprogrammed pub fn update_encoder(&mut self, state: &mut State, delta : i32) { match state.ui_sel { UISelection::VFO => { @@ -259,6 +259,7 @@ pub fn update_disp<T: hd44780_driver::bus::DataBus>(lcd: &mut HD44780<T>, state: let mode = match state.mode { Mode::CW(CWMode::StraightKey) => "CWs", Mode::CW(CWMode::Iambic) => "CWp", + Mode::FeldHell => "HEL", }; let speed = match state.tune_speed { |