mirror of
https://github.com/jketterl/openwebrx.git
synced 2026-04-20 22:05:13 +00:00
fix some exceptions due to None values
This commit is contained in:
parent
a856c27fe4
commit
f31685e4e7
2 changed files with 4 additions and 0 deletions
|
|
@ -72,6 +72,8 @@ class DspManager(csdr.output, SdrSourceEventClient):
|
|||
self.dsp.set_bpf(*bpf)
|
||||
|
||||
def set_dial_freq(key, value):
|
||||
if self.props["center_freq"] is None or self.props["offset_freq"] is None:
|
||||
return
|
||||
freq = self.props["center_freq"] + self.props["offset_freq"]
|
||||
for parser in self.parsers.values():
|
||||
parser.setDialFrequency(freq)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue