From 7b41f106042b4ecc72ecece5a757b0cb4edc04fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20K=C3=A4berich?= Date: Sat, 21 Nov 2020 12:02:27 +0100 Subject: [PATCH] Bugfix: wrong sign for tracking generator offset --- Software/VNA_embedded/Application/SpectrumAnalyzer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Software/VNA_embedded/Application/SpectrumAnalyzer.cpp b/Software/VNA_embedded/Application/SpectrumAnalyzer.cpp index 475a1c8..1f76bdd 100644 --- a/Software/VNA_embedded/Application/SpectrumAnalyzer.cpp +++ b/Software/VNA_embedded/Application/SpectrumAnalyzer.cpp @@ -60,7 +60,7 @@ static void StartNextSample() { attenuator = 0; // this is the first step in each point, update tracking generator if enabled if (s.trackingGenerator) { - trackingFreq = freq - s.trackingGeneratorOffset; + trackingFreq = freq + s.trackingGeneratorOffset; if(trackingFreq > 0 && trackingFreq <= (int64_t) HW::Info.limits_maxFreq) { // tracking frequency is valid, calculate required settings and select band auto amplitude = HW::GetAmplitudeSettings(s.trackingPower, trackingFreq, s.applySourceCorrection, s.trackingGeneratorPort);