make "digimodes_fft_size" work from web config

This commit is contained in:
Jakob Ketterl
2021-04-05 17:18:30 +02:00
parent a9990f1f41
commit c0ca216e4d
3 changed files with 22 additions and 11 deletions

View File

@ -779,9 +779,12 @@ function on_ws_recv(evt) {
break;
case "secondary_config":
var s = json['value'];
window.secondary_fft_size = s['secondary_fft_size'];
window.secondary_bw = s['secondary_bw'];
window.if_samp_rate = s['if_samp_rate'];
if ('secondary_fft_size' in s)
window.secondary_fft_size = s['secondary_fft_size'];
if ('secondary_bw' in s)
window.secondary_bw = s['secondary_bw'];
if ('if_samp_rate' in s)
window.if_samp_rate = s['if_samp_rate'];
secondary_demod_init_canvases();
break;
case "receiver_details":