From 45d4d868d7a945e549cdf585d6cb9757f55c8daa Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sat, 27 Feb 2021 01:09:51 +0100 Subject: [PATCH] clear waterfall on fft_size change so that a setting change becomes visible immediately --- htdocs/openwebrx.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/openwebrx.js b/htdocs/openwebrx.js index a1213bf..455c097 100644 --- a/htdocs/openwebrx.js +++ b/htdocs/openwebrx.js @@ -737,8 +737,10 @@ function on_ws_recv(evt) { bandwidth = config['samp_rate']; if ('center_freq' in config) center_freq = config['center_freq']; - if ('fft_size' in config) + if ('fft_size' in config) { fft_size = config['fft_size']; + waterfall_clear(); + } if ('audio_compression' in config) { var audio_compression = config['audio_compression']; audioEngine.setCompression(audio_compression);