From 367bf666fc1b140ac49aeac7f057218046bd8aea Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Wed, 13 Nov 2019 19:50:00 +0100 Subject: [PATCH] listen for frequency changes in the scheduler, too --- owrx/service.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/owrx/service.py b/owrx/service.py index b138233..741a50b 100644 --- a/owrx/service.py +++ b/owrx/service.py @@ -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():