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);
};