aboutsummaryrefslogtreecommitdiffstats
path: root/sw
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2021-05-25 22:43:55 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2021-05-25 22:43:55 +0200
commit74f15aabba9f285b3a4188e9ed29b53dbd120b9a (patch)
treee3f6e7d938f938550e4f05e00c94421e18254055 /sw
parent809a06e18c583539a47575f70a876f9c99f0b1f6 (diff)
downloadpicardy-74f15aabba9f285b3a4188e9ed29b53dbd120b9a.tar.gz
picardy-74f15aabba9f285b3a4188e9ed29b53dbd120b9a.tar.bz2
picardy-74f15aabba9f285b3a4188e9ed29b53dbd120b9a.zip
Fix display update after freq change
Diffstat (limited to 'sw')
-rw-r--r--sw/picardy/src/main.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/picardy/src/main.rs b/sw/picardy/src/main.rs
index ad3cbd1..9427c2b 100644
--- a/sw/picardy/src/main.rs
+++ b/sw/picardy/src/main.rs
@@ -291,7 +291,7 @@ fn main() -> ! {
let vfo = state.vfo();
if previous_vfo != vfo {
- siclock.set_vfo(vfo);
+ siclock.set_vfo(vfo);
}
previous_vfo = vfo;
@@ -299,7 +299,7 @@ fn main() -> ! {
let s_meter_value = s_meter_from_adc(s_meter_adc_value);
let t_now = ticks_now();
if last_s_meter_update_time + 10 < t_now {
- update_disp_required = s_meter_value != last_s_meter_value;
+ update_disp_required |= s_meter_value != last_s_meter_value;
last_s_meter_value = s_meter_value;
last_s_meter_update_time = t_now;
}
@@ -310,6 +310,7 @@ fn main() -> ! {
}
if update_disp_required {
+ let state = get_state_copy();
ui::update_disp(&mut lcd, &state, &mut delay, s_meter_value, bfo_tune_fail);
}