restart dsp chain on output_rate change, fixes #8
This commit is contained in:
parent
eb0f54e79d
commit
7431e4d7c0
3
csdr.py
3
csdr.py
@ -455,8 +455,11 @@ class dsp(object):
|
|||||||
return demodulator == "packet"
|
return demodulator == "packet"
|
||||||
|
|
||||||
def set_output_rate(self, output_rate):
|
def set_output_rate(self, output_rate):
|
||||||
|
if self.output_rate == output_rate:
|
||||||
|
return
|
||||||
self.output_rate = output_rate
|
self.output_rate = output_rate
|
||||||
self.calculate_decimation()
|
self.calculate_decimation()
|
||||||
|
self.restart()
|
||||||
|
|
||||||
def set_demodulator(self, demodulator):
|
def set_demodulator(self, demodulator):
|
||||||
if self.demodulator == demodulator:
|
if self.demodulator == demodulator:
|
||||||
|
Loading…
Reference in New Issue
Block a user