From 50a00ffb52ca8251b3c4744bf95f7ca74c943283 Mon Sep 17 00:00:00 2001 From: Mark Smith Date: Sat, 11 Jan 2020 11:22:42 -0800 Subject: [PATCH] moved display update back to where it'll update on non-encoder-wheel changes. --- ubitx_v6.3.1_code.ino | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ubitx_v6.3.1_code.ino b/ubitx_v6.3.1_code.ino index 338e1e2..e00a47a 100644 --- a/ubitx_v6.3.1_code.ino +++ b/ubitx_v6.3.1_code.ino @@ -522,6 +522,12 @@ void doTuning(){ unsigned long now = millis(); + if (now >= nextFrequencyUpdate && prev_freq != frequency){ + updateDisplay(); + nextFrequencyUpdate = now + 100; + prev_freq = frequency; + } + s = enc_read(); if (!s) return; @@ -554,12 +560,6 @@ void doTuning(){ isUSB = false; setFrequency(frequency); - - if (now >= nextFrequencyUpdate && prev_freq != frequency){ - updateDisplay(); - nextFrequencyUpdate = now + 100; - prev_freq = frequency; - } }