listen for frequency changes in the scheduler, too

This commit is contained in:
Jakob Ketterl 2019-11-13 19:50:00 +01:00
parent 7489a3bb9d
commit 367bf666fc

View File

@ -113,6 +113,7 @@ class ServiceScheduler(object):
self.active = False self.active = False
self.source.addClient(self) self.source.addClient(self)
self.selectionTimer = None self.selectionTimer = None
self.source.getProps().collect("center_freq", "samp_rate").wire(self.onFrequencyChange)
self.scheduleSelection() self.scheduleSelection()
def shutdown(self): def shutdown(self):
@ -144,6 +145,9 @@ class ServiceScheduler(object):
def onSdrFailed(self): def onSdrFailed(self):
self.cancelTimer() self.cancelTimer()
def onFrequencyChange(self, name, value):
self.scheduleSelection()
def selectProfile(self): def selectProfile(self):
self.active = False self.active = False
if self.source.hasActiveClients(): if self.source.hasActiveClients():