fix for lfo_offset = None
This commit is contained in:
parent
dab62a04df
commit
9f710cb70e
@ -459,7 +459,7 @@ class ConnectorSource(SdrSource):
|
|||||||
def reconfigure(prop, value):
|
def reconfigure(prop, value):
|
||||||
if self.monitor is None:
|
if self.monitor is None:
|
||||||
return
|
return
|
||||||
if (prop == "center_freq" or prop == "lfo_offset") and "lfo_offset" in self.rtlProps:
|
if (prop == "center_freq" or prop == "lfo_offset") and "lfo_offset" in self.rtlProps and self.rtlProps["lfo_offset"] is not None:
|
||||||
freq = self.rtlProps["center_freq"] + self.rtlProps["lfo_offset"]
|
freq = self.rtlProps["center_freq"] + self.rtlProps["lfo_offset"]
|
||||||
self.sendControlMessage("center_freq", freq)
|
self.sendControlMessage("center_freq", freq)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user