From 142ca578ec620e5f0a9b6b9245ecbc3252eaf6df Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sat, 30 Jan 2021 16:04:29 +0100 Subject: [PATCH] truncate waterfall only when profile has changed --- htdocs/openwebrx.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/openwebrx.js b/htdocs/openwebrx.js index 3dd754f..759f316 100644 --- a/htdocs/openwebrx.js +++ b/htdocs/openwebrx.js @@ -759,9 +759,9 @@ function on_ws_recv(evt) { if ('sdr_id' in config && 'profile_id' in config) { currentprofile = config['sdr_id'] + '|' + config['profile_id']; $('#openwebrx-sdr-profiles-listbox').val(currentprofile); - } - waterfall_clear(); + waterfall_clear(); + } if ('frequency_display_precision' in config) $('#openwebrx-panel-receiver').demodulatorPanel().setFrequencyPrecision(config['frequency_display_precision']);