From 74f15aabba9f285b3a4188e9ed29b53dbd120b9a Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Tue, 25 May 2021 22:43:55 +0200 Subject: Fix display update after freq change --- sw/picardy/src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sw') 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); } -- cgit v1.2.3