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;
|
break;
|
||||||
}
|
}
|
||||||
auto amplitude = HW::GetAmplitudeSettings(g.cdbm_level, g.frequency, g.applyAmplitudeCorrection, g.activePort == 2);
|
auto amplitude = HW::GetAmplitudeSettings(g.cdbm_level, g.frequency, g.applyAmplitudeCorrection, g.activePort == 2);
|
||||||
HW::SetOutputUnlevel(amplitude.unlevel);
|
|
||||||
// Select correct source
|
// Select correct source
|
||||||
if(g.frequency < HW::BandSwitchFrequency) {
|
if(g.frequency < HW::BandSwitchFrequency) {
|
||||||
m.SourceLowEN = 1;
|
m.SourceLowEN = 1;
|
||||||
@ -71,4 +70,5 @@ void Generator::Setup(Protocol::GeneratorSettings g) {
|
|||||||
|
|
||||||
m.attenuator = amplitude.attenuator;
|
m.attenuator = amplitude.attenuator;
|
||||||
Manual::Setup(m);
|
Manual::Setup(m);
|
||||||
|
HW::SetOutputUnlevel(amplitude.unlevel);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user