add a feature flag

This commit is contained in:
Jakob Ketterl 2020-12-16 10:18:47 +01:00
parent 664c6e049f
commit 4b61192b36

View File

@ -76,6 +76,8 @@ class output(object):
class dsp(object): class dsp(object):
def __init__(self, output): def __init__(self, output):
self.pycsdr_enabled = True
self.samp_rate = 250000 self.samp_rate = 250000
self.output_rate = 11025 self.output_rate = 11025
self.hd_output_rate = 44100 self.hd_output_rate = 44100
@ -756,6 +758,7 @@ class dsp(object):
self.direwolf_config = None self.direwolf_config = None
def start(self): def start(self):
if self.pycsdr_enabled:
if self.demodulator == "fft": if self.demodulator == "fft":
with self.modification_lock: with self.modification_lock:
if self.running: if self.running: