Fixing some errors.

This commit is contained in:
Marat Fayzullin 2023-05-20 22:26:42 -04:00
parent 15bcd0d3fb
commit 640eb9ad45
1 changed files with 2 additions and 5 deletions

View File

@ -120,9 +120,7 @@ class SdrSource(ABC):
# layer 0 contains center_freq so that it can be changed
# independently of the profile
self.props.addLayer(0, PropertyLayer(
center_freq=self.profileCarousel["center_freq"]
))
self.props.addLayer(0, PropertyLayer())
# layer 1 reserved for profile properties
# prevent profile names from overriding the device name
@ -239,8 +237,7 @@ class SdrSource(ABC):
logger.warning("invalid profile %s for sdr %s. ignoring", profile_id, self.getId())
def setCenterFreq(self, frequency):
if "center_freq" in self.props:
self.props["center_freq"] = frequency
self.props["center_freq"] = frequency
def getId(self):
return self.id