mirror of
https://codeberg.org/mclemens/ubitxv6.git
synced 2024-11-04 03:27:23 -05:00
Rename oscillator variables so it's clear which is which not just from the math
This commit is contained in:
parent
afeb056667
commit
79fd056af0
@ -159,24 +159,24 @@ void setFrequency(unsigned long freq){
|
|||||||
|
|
||||||
setTXFilters(freq);
|
setTXFilters(freq);
|
||||||
|
|
||||||
uint32_t primary_osc_freq;
|
uint32_t local_osc_freq;
|
||||||
if(VfoMode_e::VFO_MODE_USB == GetActiveVfoMode()){
|
|
||||||
primary_osc_freq = firstIF + globalSettings.usbCarrierFreq;
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
primary_osc_freq = firstIF - globalSettings.usbCarrierFreq;
|
|
||||||
}
|
|
||||||
|
|
||||||
uint32_t secondary_osc_freq;
|
|
||||||
if(TuningMode_e::TUNE_CW == globalSettings.tuningMode){
|
if(TuningMode_e::TUNE_CW == globalSettings.tuningMode){
|
||||||
secondary_osc_freq = firstIF + freq + globalSettings.cwSideToneFreq;
|
local_osc_freq = firstIF + freq + globalSettings.cwSideToneFreq;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
secondary_osc_freq = firstIF + freq;
|
local_osc_freq = firstIF + freq;
|
||||||
}
|
}
|
||||||
|
|
||||||
si5351bx_setfreq(2, secondary_osc_freq);
|
uint32_t ssb_osc_freq;
|
||||||
si5351bx_setfreq(1, primary_osc_freq);
|
if(VfoMode_e::VFO_MODE_USB == GetActiveVfoMode()){
|
||||||
|
ssb_osc_freq = firstIF + globalSettings.usbCarrierFreq;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
ssb_osc_freq = firstIF - globalSettings.usbCarrierFreq;
|
||||||
|
}
|
||||||
|
|
||||||
|
si5351bx_setfreq(2, local_osc_freq);
|
||||||
|
si5351bx_setfreq(1, ssb_osc_freq);
|
||||||
|
|
||||||
SetActiveVfoFreq(freq);
|
SetActiveVfoFreq(freq);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user