defer demodulator startup until center_freq is set

This commit is contained in:
Jakob Ketterl 2020-10-11 00:25:13 +02:00
parent f31685e4e7
commit 3975073efd
2 changed files with 2 additions and 2 deletions

View File

@ -179,7 +179,7 @@ DemodulatorPanel.prototype.collectParams = function() {
};
DemodulatorPanel.prototype.startDemodulator = function() {
if (!Modes.initComplete()) return;
if (!Modes.initComplete() || !this.center_freq) return;
var params = this.collectParams();
this._apply(params);
};

View File

@ -724,8 +724,8 @@ function on_ws_recv(evt) {
waterfall_init();
var demodulatorPanel = $('#openwebrx-panel-receiver').demodulatorPanel();
demodulatorPanel.setInitialParams(initial_demodulator_params);
demodulatorPanel.setCenterFrequency(center_freq);
demodulatorPanel.setInitialParams(initial_demodulator_params);
bookmarks.loadLocalBookmarks();
waterfall_clear();