adapt to config event api changes

This commit is contained in:
Jakob Ketterl
2020-12-30 17:18:46 +01:00
parent 29703d10b2
commit cf0c6e7f9d
10 changed files with 30 additions and 32 deletions

View File

@@ -7,12 +7,8 @@ logger = logging.getLogger(__name__)
class DirectSource(SdrSource, metaclass=ABCMeta):
def onPropertyChange(self, name, value):
logger.debug(
"restarting sdr source due to property change: {0} changed to {1}".format(
name, value
)
)
def onPropertyChange(self, changes):
logger.debug("restarting sdr source due to property changes: {0}".format(changes))
self.stop()
self.sleepOnRestart()
self.start()