mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-06 15:04:11 +00:00
Stop sweep after reset, fix failing tests
This commit is contained in:
parent
c5d045364c
commit
0fc6c912fc
10 changed files with 38 additions and 17 deletions
|
|
@ -347,7 +347,7 @@ void HW::getDeviceStatus(Protocol::DeviceStatus *status, bool updateEvenWhenBusy
|
|||
status->V1.LO1_locked = (FPGA_status & (int) FPGA::Interrupt::LO1Unlock) ? 0 : 1;
|
||||
status->V1.source_locked = (FPGA_status & (int) FPGA::Interrupt::SourceUnlock) ? 0 : 1;
|
||||
status->V1.extRefAvailable = Ref::available();
|
||||
status->V1.extRefInUse = extRefInUse;
|
||||
status->V1.extRefInUse = Ref::usingExternal();
|
||||
status->V1.unlevel = unlevel;
|
||||
status->V1.temp_LO1 = tempLO;
|
||||
status->V1.temp_source = tempSource;
|
||||
|
|
@ -365,7 +365,7 @@ void HW::Ref::set(Protocol::ReferenceSettings s) {
|
|||
}
|
||||
|
||||
bool HW::Ref::usingExternal() {
|
||||
return extRefInUse;
|
||||
return extRefInUse && (ref.UseExternalRef || ref.AutomaticSwitch);
|
||||
}
|
||||
|
||||
void HW::Ref::update() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue