diff --git a/NanoVNASaver/Hardware/NanoVNA_V2.py b/NanoVNASaver/Hardware/NanoVNA_V2.py index 0762b7f..ffef59c 100644 --- a/NanoVNASaver/Hardware/NanoVNA_V2.py +++ b/NanoVNASaver/Hardware/NanoVNA_V2.py @@ -185,6 +185,8 @@ class NanoVNAV2(VNA): def setSweep(self, start, stop): + if(len(self.sweepData) != self.datapoints) : + self.sweepData = [(0, 0)] * self.datapoints step = (stop - start) / (self.datapoints - 1) if start == self.sweepStartHz and step == self.sweepStepHz: return