Bugfix: only enable highband source once per sweep

This commit is contained in:
Jan Käberich 2020-09-20 22:51:51 +02:00
parent c1f131b6d7
commit d32f7a61ee
3 changed files with 10 additions and 1 deletions

View file

@ -259,7 +259,7 @@ void VNA::SweepHalted() {
Si5351.Enable(SiChannel::LowbandSource);
FPGA::Disable(FPGA::Periphery::SourceRF);
}
} else {
} else if(!FPGA::IsEnabled(FPGA::Periphery::SourceRF)){
// first sweep point in highband is also halted, disable lowband source
Si5351.Disable(SiChannel::LowbandSource);
FPGA::Enable(FPGA::Periphery::SourceRF);