remove port flag and turn rtltcp_compat into an option

This commit is contained in:
Jakob Ketterl 2020-11-23 15:26:01 +01:00
parent 2579b9be26
commit 781b4383d6
2 changed files with 2 additions and 5 deletions

View File

@ -59,10 +59,7 @@ class SdrSource(ABC):
self.activateProfile() self.activateProfile()
self.wireEvents() self.wireEvents()
if "port" in props and props["port"] is not None: self.port = getAvailablePort()
self.port = props["port"]
else:
self.port = getAvailablePort()
self.monitor = None self.monitor = None
self.clients = [] self.clients = []
self.spectrumClients = [] self.spectrumClients = []

View File

@ -23,7 +23,7 @@ class ConnectorSource(SdrSource):
"controlPort": Option("-c"), "controlPort": Option("-c"),
"device": Option("-d"), "device": Option("-d"),
"iqswap": Flag("-i"), "iqswap": Flag("-i"),
"rtltcp_compat": Flag("-r"), "rtltcp_compat": Option("-r"),
"ppm": Option("-P"), "ppm": Option("-P"),
"rf_gain": Option("-g"), "rf_gain": Option("-g"),
} }