From 602289d9cb87c9454deb8712fbed1b520edf4838 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20K=C3=A4berich?= Date: Tue, 8 Mar 2022 16:59:54 +0100 Subject: [PATCH] Fix averaging with segmented sweep --- Software/PC_Application/VNA/vna.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Software/PC_Application/VNA/vna.cpp b/Software/PC_Application/VNA/vna.cpp index b696722..ee14a92 100644 --- a/Software/PC_Application/VNA/vna.cpp +++ b/Software/PC_Application/VNA/vna.cpp @@ -941,7 +941,7 @@ void VNA::SettingsChanged(bool resetTraces, std::functiongetDevice()->Configure(s, [=](Device::TransmissionResult res){ // device received command, reset traces now if (resetTraces) { - average.reset(s.points); + average.reset(settings.npoints); traceModel.clearLiveData(); UpdateAverageCount(); UpdateCalWidget();