restart dsp chain on output_rate change, fixes #8

This commit is contained in:
Jakob Ketterl 2019-10-03 00:14:05 +02:00
parent eb0f54e79d
commit 7431e4d7c0

View File

@ -455,8 +455,11 @@ class dsp(object):
return demodulator == "packet"
def set_output_rate(self, output_rate):
if self.output_rate == output_rate:
return
self.output_rate = output_rate
self.calculate_decimation()
self.restart()
def set_demodulator(self, demodulator):
if self.demodulator == demodulator: