kopia lustrzana https://github.com/NanoVNA-Saver/nanovna-saver
repair multi segment sweeps for v2
Some of the code relies on checking the sweepData length so make it the same as the requested number of datapointspull/190/head
rodzic
48eb788bc9
commit
da864ea008
|
@ -185,6 +185,8 @@ class NanoVNAV2(VNA):
|
||||||
|
|
||||||
|
|
||||||
def setSweep(self, start, stop):
|
def setSweep(self, start, stop):
|
||||||
|
if(len(self.sweepData) != self.datapoints) :
|
||||||
|
self.sweepData = [(0, 0)] * self.datapoints
|
||||||
step = (stop - start) / (self.datapoints - 1)
|
step = (stop - start) / (self.datapoints - 1)
|
||||||
if start == self.sweepStartHz and step == self.sweepStepHz:
|
if start == self.sweepStartHz and step == self.sweepStepHz:
|
||||||
return
|
return
|
||||||
|
|
Ładowanie…
Reference in New Issue