diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2021-04-15 13:07:56 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2021-04-15 13:07:56 +0200 |
commit | 03ad81d7afaea119df607b6e65f19bd5362fab39 (patch) | |
tree | 38835bd11e550aa267acaf82dad2c63f5a566522 /sw/eval-clock-cw-tx/src/ui.rs | |
parent | 1a65830bbfc9ea4cfb999f43beb67e15947ef358 (diff) | |
download | picardy-03ad81d7afaea119df607b6e65f19bd5362fab39.tar.gz picardy-03ad81d7afaea119df607b6e65f19bd5362fab39.tar.bz2 picardy-03ad81d7afaea119df607b6e65f19bd5362fab39.zip |
Get FELDHELL to work
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 { |