add a feature flag
This commit is contained in:
		@@ -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:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user