use automatic ports unless explicitly configured

This commit is contained in:
Jakob Ketterl
2019-12-31 15:24:11 +01:00
parent 42789ed561
commit 70347d1ef9
10 changed files with 21 additions and 37 deletions

View File

@ -15,7 +15,7 @@ class Resampler(DirectSource):
def onPropertyChange(self, name, value):
logger.warning("Resampler is unable to handle property change ({0} changed to {1})".format(name, value))
def __init__(self, props, port, sdr):
def __init__(self, props, sdr):
sdrProps = sdr.getProps()
self.shift = (sdrProps["center_freq"] - props["center_freq"]) / sdrProps["samp_rate"]
self.decimation = int(float(sdrProps["samp_rate"]) / props["samp_rate"])
@ -24,7 +24,7 @@ class Resampler(DirectSource):
props["samp_rate"] = if_samp_rate
self.sdr = sdr
super().__init__(None, props, port)
super().__init__(None, props)
def getCommand(self):
return [