mirror of
https://github.com/jketterl/openwebrx.git
synced 2026-04-04 14:08:38 +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
|
|
@ -643,6 +643,8 @@ class dsp(object):
|
|||
return self.samp_rate / self.fft_fps / self.fft_averages
|
||||
|
||||
def set_offset_freq(self, offset_freq):
|
||||
if offset_freq is None:
|
||||
return
|
||||
self.offset_freq = offset_freq
|
||||
if self.running:
|
||||
self.pipes["shift_pipe"].write("%g\n" % (-float(self.offset_freq) / self.samp_rate))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue