fix subscription
This commit is contained in:
parent
8531d5e4ab
commit
bb77d2ce0a
@ -29,11 +29,6 @@ class SpectrumThread(SdrSourceEventClient):
|
|||||||
self.dsp = None
|
self.dsp = None
|
||||||
|
|
||||||
self.subscriptions = []
|
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.")
|
logger.debug("Spectrum thread initialized successfully.")
|
||||||
|
|
||||||
@ -51,6 +46,7 @@ class SpectrumThread(SdrSourceEventClient):
|
|||||||
self.sdrSource.addClient(self)
|
self.sdrSource.addClient(self)
|
||||||
|
|
||||||
self.subscriptions += [
|
self.subscriptions += [
|
||||||
|
self.props.filter("fft_size", "fft_compression").wire(self.restart),
|
||||||
# these props can be set on the fly
|
# these props can be set on the fly
|
||||||
self.props.wireProperty("samp_rate", self.dsp.setSampleRate),
|
self.props.wireProperty("samp_rate", self.dsp.setSampleRate),
|
||||||
self.props.wireProperty("fft_fps", self.dsp.setFps),
|
self.props.wireProperty("fft_fps", self.dsp.setFps),
|
||||||
|
Loading…
Reference in New Issue
Block a user