more work to allow seamless config switching
This commit is contained in:
@ -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"]
|
||||
|
||||
|
@ -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(
|
||||
|
Reference in New Issue
Block a user