From 56de3dca11837d6c00856080615cdd318eba211c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20K=C3=A4berich?= Date: Sat, 3 Feb 2024 18:34:28 +0100 Subject: [PATCH] Fix determination of excited ports --- Software/PC_Application/LibreVNA-GUI/VNA/vna.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Software/PC_Application/LibreVNA-GUI/VNA/vna.cpp b/Software/PC_Application/LibreVNA-GUI/VNA/vna.cpp index 50cae509..06acb47e 100644 --- a/Software/PC_Application/LibreVNA-GUI/VNA/vna.cpp +++ b/Software/PC_Application/LibreVNA-GUI/VNA/vna.cpp @@ -1217,7 +1217,7 @@ void VNA::SetAveraging(unsigned int averages) void VNA::ExcitationRequired() { if(!Preferences::getInstance().Acquisition.alwaysExciteAllPorts) { - for(unsigned int i=1;igetDevice()).Limits.VNA.ports;i++) { + for(unsigned int i=1;i<=DeviceDriver::getInfo(window->getDevice()).Limits.VNA.ports;i++) { auto required = traceModel.PortExcitationRequired(i); auto set = find(settings.excitedPorts.begin(), settings.excitedPorts.end(), i) != settings.excitedPorts.end(); if(required != set) {