From ac1e9fcec66b848f1f98f795c86fca3d5b111604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20K=C3=A4berich?= Date: Mon, 15 Mar 2021 17:33:45 +0100 Subject: [PATCH] Remove duplicate correction of output level --- Software/VNA_embedded/Application/Generator.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Software/VNA_embedded/Application/Generator.cpp b/Software/VNA_embedded/Application/Generator.cpp index 6a127af..1c7083d 100644 --- a/Software/VNA_embedded/Application/Generator.cpp +++ b/Software/VNA_embedded/Application/Generator.cpp @@ -35,14 +35,6 @@ void Generator::Setup(Protocol::GeneratorSettings g) { m.PortSwitch = 1; break; } - if (g.applyAmplitudeCorrection) { - auto correction = AmplitudeCal::SourceCorrection(g.frequency); - if (g.activePort == 1) { - g.cdbm_level += correction.port1; - } else { - g.cdbm_level += correction.port2; - } - } auto amplitude = HW::GetAmplitudeSettings(g.cdbm_level, g.frequency, g.applyAmplitudeCorrection, g.activePort == 2); HW::SetOutputUnlevel(amplitude.unlevel); // Select correct source