Slight tweak to how frequencies are changed so that quicklist changes will update the actual oscillators
This commit is contained in:
parent
0b65559e97
commit
e3f23ae755
|
@ -65,6 +65,9 @@ void drawMainMenuIncrement()
|
||||||
updateBandButtons(last_freq);
|
updateBandButtons(last_freq);
|
||||||
last_freq = GetActiveVfoFreq();
|
last_freq = GetActiveVfoFreq();
|
||||||
last_vfo = globalSettings.activeVfo;
|
last_vfo = globalSettings.activeVfo;
|
||||||
|
|
||||||
|
//We set this here so that we're always hearing what's displayed
|
||||||
|
setFrequency(last_freq);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(last_mode != GetActiveVfoMode()){
|
if(last_mode != GetActiveVfoMode()){
|
||||||
|
@ -100,7 +103,7 @@ void mainMenuTune(int16_t knob)
|
||||||
const uint32_t current_freq = GetActiveVfoFreq();
|
const uint32_t current_freq = GetActiveVfoFreq();
|
||||||
const uint32_t new_freq = current_freq + (50 * knob);
|
const uint32_t new_freq = current_freq + (50 * knob);
|
||||||
|
|
||||||
setFrequency(new_freq);
|
SetActiveVfoFreq(new_freq);
|
||||||
autoSelectSidebandChanged(current_freq);
|
autoSelectSidebandChanged(current_freq);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue