aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}