truncate waterfall only when profile has changed

This commit is contained in:
Jakob Ketterl 2021-01-30 16:04:29 +01:00
parent ad8ff1c2f7
commit 142ca578ec

View File

@ -759,9 +759,9 @@ function on_ws_recv(evt) {
if ('sdr_id' in config && 'profile_id' in config) { if ('sdr_id' in config && 'profile_id' in config) {
currentprofile = config['sdr_id'] + '|' + config['profile_id']; currentprofile = config['sdr_id'] + '|' + config['profile_id'];
$('#openwebrx-sdr-profiles-listbox').val(currentprofile); $('#openwebrx-sdr-profiles-listbox').val(currentprofile);
}
waterfall_clear(); waterfall_clear();
}
if ('frequency_display_precision' in config) if ('frequency_display_precision' in config)
$('#openwebrx-panel-receiver').demodulatorPanel().setFrequencyPrecision(config['frequency_display_precision']); $('#openwebrx-panel-receiver').demodulatorPanel().setFrequencyPrecision(config['frequency_display_precision']);