fix for lfo_offset = None

This commit is contained in:
Jakob Ketterl 2019-11-21 17:19:51 +01:00
parent dab62a04df
commit 9f710cb70e

View File

@ -459,7 +459,7 @@ class ConnectorSource(SdrSource):
def reconfigure(prop, value):
if self.monitor is None:
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"]
self.sendControlMessage("center_freq", freq)
else: