mirror of
https://codeberg.org/mclemens/ubitxv6.git
synced 2025-02-21 06:57:27 -05:00
moved display update back to where it'll update on non-encoder-wheel changes.
This commit is contained in:
parent
858205b4cd
commit
50a00ffb52
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user