mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-01-20 15:40:38 +01:00
Set unlevel flag after mode switch to prevent immediate reset
This commit is contained in:
parent
ba62925b67
commit
dbadddcf98
|
|
@ -36,7 +36,6 @@ void Generator::Setup(Protocol::GeneratorSettings g) {
|
|||
break;
|
||||
}
|
||||
auto amplitude = HW::GetAmplitudeSettings(g.cdbm_level, g.frequency, g.applyAmplitudeCorrection, g.activePort == 2);
|
||||
HW::SetOutputUnlevel(amplitude.unlevel);
|
||||
// Select correct source
|
||||
if(g.frequency < HW::BandSwitchFrequency) {
|
||||
m.SourceLowEN = 1;
|
||||
|
|
@ -71,4 +70,5 @@ void Generator::Setup(Protocol::GeneratorSettings g) {
|
|||
|
||||
m.attenuator = amplitude.attenuator;
|
||||
Manual::Setup(m);
|
||||
HW::SetOutputUnlevel(amplitude.unlevel);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue