From fbcfb550a2b711c2476c1a0ca6fd27980d08e23d Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Thu, 27 Feb 2020 23:21:00 +0100 Subject: [PATCH] pass direct sampling mode changes to owrx_connector --- owrx/source/rtl_sdr_soapy.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/owrx/source/rtl_sdr_soapy.py b/owrx/source/rtl_sdr_soapy.py index 24fe9f4..f6b9b94 100644 --- a/owrx/source/rtl_sdr_soapy.py +++ b/owrx/source/rtl_sdr_soapy.py @@ -11,3 +11,9 @@ class RtlSdrSoapySource(SoapyConnectorSource): def getEventNames(self): return super().getEventNames() + ["direct_sampling"] + + def onPropertyChange(self, prop, value): + if prop == "direct_sampling": + prop = "settings" + value = "direct_samp={0}".format(value) + super().onPropertyChange(prop, value)