mirror of
https://github.com/jankae/LibreVNA.git
synced 2025-12-06 07:12:10 +01:00
Bugfix: correct PLL configuration at the band switch frequency (25 MHz)
This commit is contained in:
parent
abe2aefcf9
commit
38b4a6ba39
|
|
@ -87,14 +87,14 @@ static bool setPLLFrequencies(uint64_t f) {
|
||||||
}
|
}
|
||||||
LOFreq = f + HW::getIF1();
|
LOFreq = f + HW::getIF1();
|
||||||
}
|
}
|
||||||
if(sourceFreq > HW::BandSwitchFrequency) {
|
if(sourceFreq >= HW::BandSwitchFrequency) {
|
||||||
Source.SetFrequency(sourceFreq);
|
Source.SetFrequency(sourceFreq);
|
||||||
}
|
}
|
||||||
LO1.SetFrequency(LOFreq);
|
LO1.SetFrequency(LOFreq);
|
||||||
bool needsRefSwitch = false;
|
bool needsRefSwitch = false;
|
||||||
if(settings.suppressPeaks) {
|
if(settings.suppressPeaks) {
|
||||||
// Integer spurs can cause a small peak.
|
// Integer spurs can cause a small peak.
|
||||||
if(sourceFreq > HW::BandSwitchFrequency) {
|
if(sourceFreq >= HW::BandSwitchFrequency) {
|
||||||
uint32_t sourceDist = Source.DistanceToIntegerSpur();
|
uint32_t sourceDist = Source.DistanceToIntegerSpur();
|
||||||
if((sourceDist > 0) && (sourceDist < 3 * HW::getIF2())) {
|
if((sourceDist > 0) && (sourceDist < 3 * HW::getIF2())) {
|
||||||
LOG_DEBUG("Source spur at %lu: %lu", (uint32_t) f, sourceDist);
|
LOG_DEBUG("Source spur at %lu: %lu", (uint32_t) f, sourceDist);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue