From bb77d2ce0a73b0f255b6f64c7c58cac9258e8e8e Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sun, 18 Jul 2021 14:57:50 +0200 Subject: [PATCH] fix subscription --- owrx/fft.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/owrx/fft.py b/owrx/fft.py index 23c2c2f..5149f4c 100644 --- a/owrx/fft.py +++ b/owrx/fft.py @@ -29,11 +29,6 @@ class SpectrumThread(SdrSourceEventClient): self.dsp = None self.subscriptions = [] - self.subscriptions += [ - # these props require a restart - self.props.wireProperty("fft_size", self.restart), - self.props.wireProperty("fft_compression", self.restart), - ] logger.debug("Spectrum thread initialized successfully.") @@ -51,6 +46,7 @@ class SpectrumThread(SdrSourceEventClient): self.sdrSource.addClient(self) self.subscriptions += [ + self.props.filter("fft_size", "fft_compression").wire(self.restart), # these props can be set on the fly self.props.wireProperty("samp_rate", self.dsp.setSampleRate), self.props.wireProperty("fft_fps", self.dsp.setFps),