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

@ -3,8 +3,8 @@ from owrx.command import Flag, Option
class HackrfSource(DirectSource):
def __init__(self, id, props, port):
super().__init__(id, props, port)
def __init__(self, id, props):
super().__init__(id, props)
self.getCommandMapper().setBase("hackrf_transfer").setMappings(
{
"samp_rate": Option("-s"),