send missing parameters for audio client startup

This commit is contained in:
Jakob Ketterl
2019-05-04 20:40:13 +02:00
parent 1f909080db
commit 6ec21e6716
3 changed files with 6 additions and 4 deletions

View File

@ -64,9 +64,11 @@ class WebSocketMessageHandler(object):
for key in ["waterfall_colors", "waterfall_min_level", "waterfall_max_level", "waterfall_auto_level_margin",
"shown_center_freq", "samp_rate", "fft_size", "fft_fps", "audio_compression", "fft_compression",
"max_clients"]:
"max_clients", "start_mod"]:
config[key] = pm.getProperty(key).getValue()
config[key] = pm.getPropertyValue(key)
config["start_offset_freq"] = pm.getPropertyValue("start_freq") - pm.getPropertyValue("center_freq")
conn.send({"type":"config","value":config})
print("client connection intitialized")