mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-02-24 08:24:16 +01:00
Remove duplicate correction of output level
This commit is contained in:
parent
7a4113cd6b
commit
ac1e9fcec6
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue