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