mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-04-04 22:17:34 +00:00
reformat with black
This commit is contained in:
parent
e5724620a8
commit
1a3a5b43a0
15 changed files with 48 additions and 47 deletions
|
|
@ -5,13 +5,15 @@ from owrx.command import Flag, Option
|
|||
class HackrfSource(DirectSource):
|
||||
def __init__(self, id, props, port):
|
||||
super().__init__(id, props, port)
|
||||
self.getCommandMapper().setBase("hackrf_transfer").setMappings({
|
||||
"samp_rate": Option("-s"),
|
||||
"tuner_freq": Option("-f"),
|
||||
"rf_gain": Option("-g"),
|
||||
"lna_gain": Option("-l"),
|
||||
"rf_amp": Option("-a")
|
||||
}).setStatic("-r-")
|
||||
self.getCommandMapper().setBase("hackrf_transfer").setMappings(
|
||||
{
|
||||
"samp_rate": Option("-s"),
|
||||
"tuner_freq": Option("-f"),
|
||||
"rf_gain": Option("-g"),
|
||||
"lna_gain": Option("-l"),
|
||||
"rf_amp": Option("-a"),
|
||||
}
|
||||
).setStatic("-r-")
|
||||
|
||||
def getEventNames(self):
|
||||
return super().getEventNames() + [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue