more work to allow seamless config switching

This commit is contained in:
Jakob Ketterl
2019-05-07 20:06:06 +02:00
parent 35930f79f1
commit 4cd23cf445
5 changed files with 20 additions and 13 deletions

View File

@ -85,7 +85,7 @@ class WebSocketMessageHandler(object):
self.client = OpenWebRxClient(conn)
config_keys = ["waterfall_colors", "waterfall_min_level", "waterfall_max_level",
"waterfall_auto_level_margin", "shown_center_freq", "samp_rate", "fft_size", "fft_fps",
"waterfall_auto_level_margin", "lfo_offset", "samp_rate", "fft_size", "fft_fps",
"audio_compression", "fft_compression", "max_clients", "start_mod",
"client_audio_buffer_size", "start_freq", "center_freq"]

View File

@ -34,17 +34,17 @@ class RtlNmuxSource(object):
self.start()
props.wire(restart)
featureDetector = FeatureDetector()
if not featureDetector.is_available(props["rtl_type"]):
print("The RTL source type {0} is not available. please check requirements.".format(props["rtl_type"]))
return
self.start()
def start(self):
props = self.props
featureDetector = FeatureDetector()
if not featureDetector.is_available(props["rtl_type"]):
print("The RTL source type {0} is not available. please check requirements.".format(props["rtl_type"]))
return
params = RtlNmuxSource.types[props["rtl_type"]]
start_sdr_command = params["command"].format(