defer demodulator startup until center_freq is set
This commit is contained in:
parent
f31685e4e7
commit
3975073efd
@ -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);
|
||||
};
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user