From 38b4a6ba39c8cf7057380314e93a0e3de6c8ab6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20K=C3=A4berich?= Date: Sat, 9 Aug 2025 19:11:32 +0200 Subject: [PATCH] Bugfix: correct PLL configuration at the band switch frequency (25 MHz) --- Software/VNA_embedded/Application/VNA.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Software/VNA_embedded/Application/VNA.cpp b/Software/VNA_embedded/Application/VNA.cpp index 2b204d9..ff9441e 100644 --- a/Software/VNA_embedded/Application/VNA.cpp +++ b/Software/VNA_embedded/Application/VNA.cpp @@ -87,14 +87,14 @@ static bool setPLLFrequencies(uint64_t f) { } LOFreq = f + HW::getIF1(); } - if(sourceFreq > HW::BandSwitchFrequency) { + if(sourceFreq >= HW::BandSwitchFrequency) { Source.SetFrequency(sourceFreq); } LO1.SetFrequency(LOFreq); bool needsRefSwitch = false; if(settings.suppressPeaks) { // Integer spurs can cause a small peak. - if(sourceFreq > HW::BandSwitchFrequency) { + if(sourceFreq >= HW::BandSwitchFrequency) { uint32_t sourceDist = Source.DistanceToIntegerSpur(); if((sourceDist > 0) && (sourceDist < 3 * HW::getIF2())) { LOG_DEBUG("Source spur at %lu: %lu", (uint32_t) f, sourceDist);