aboutsummaryrefslogtreecommitdiffstats
path: root/sw/eval-clock-cw-tx/src/ui.rs
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2023-03-13 23:14:32 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2023-03-13 23:14:32 +0100
commite04fec33f079db4c5d42aa412f7b670784ec1b68 (patch)
tree3bed3e90faafcd3967dafae293277ad0b6dddd10 /sw/eval-clock-cw-tx/src/ui.rs
parentde7b4aa1b04e1fcb226c596c819b5ff996c73238 (diff)
downloadpicardy-e04fec33f079db4c5d42aa412f7b670784ec1b68.tar.gz
picardy-e04fec33f079db4c5d42aa412f7b670784ec1b68.tar.bz2
picardy-e04fec33f079db4c5d42aa412f7b670784ec1b68.zip
Add WSPR TX to eval-clock-cw-tx
Diffstat (limited to 'sw/eval-clock-cw-tx/src/ui.rs')
-rw-r--r--sw/eval-clock-cw-tx/src/ui.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/eval-clock-cw-tx/src/ui.rs b/sw/eval-clock-cw-tx/src/ui.rs
index 9f3d985..0ee6163 100644
--- a/sw/eval-clock-cw-tx/src/ui.rs
+++ b/sw/eval-clock-cw-tx/src/ui.rs
@@ -172,7 +172,8 @@ impl UI {
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::FeldHell),
- (UISelection::Mode, Mode::FeldHell) => (UISelection::Mode, Mode::CW(CWMode::StraightKey)),
+ (UISelection::Mode, Mode::FeldHell) => (UISelection::Mode, Mode::WSPR),
+ (UISelection::Mode, Mode::WSPR) => (UISelection::Mode, Mode::CW(CWMode::StraightKey)),
(_, f) => (UISelection::Mode, f),
};
@@ -264,6 +265,7 @@ pub fn update_disp<T: hd44780_driver::bus::DataBus, D: DelayUs<u16> + DelayMs<u8
Mode::CW(CWMode::StraightKey) => "CWs",
Mode::CW(CWMode::Iambic) => "CWp",
Mode::FeldHell => "HEL",
+ Mode::WSPR => "WSP",
};
write!(string, "{} ", mode).unwrap();