mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-06 06:53:37 +00:00
Remove duplicate correction of output level
This commit is contained in:
parent
7a4113cd6b
commit
ac1e9fcec6
1 changed files with 0 additions and 8 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue