moved display update back to where it'll update on non-encoder-wheel changes.

This commit is contained in:
Mark Smith 2020-01-11 11:22:42 -08:00
parent 858205b4cd
commit 50a00ffb52

View File

@ -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;
}
}