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();