reset & stabilize modes
This commit is contained in:
parent
ac136313cb
commit
acb392e56c
@ -91,8 +91,6 @@ DemodulatorPanel.prototype.setMode = function(modulation) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.mode = mode;
|
|
||||||
|
|
||||||
if (mode.type === 'digimode') {
|
if (mode.type === 'digimode') {
|
||||||
modulation = mode.underlying[0];
|
modulation = mode.underlying[0];
|
||||||
}
|
}
|
||||||
@ -119,6 +117,7 @@ DemodulatorPanel.prototype.setMode = function(modulation) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.demodulator.start();
|
this.demodulator.start();
|
||||||
|
this.mode = mode;
|
||||||
|
|
||||||
this.updateButtons();
|
this.updateButtons();
|
||||||
this.updatePanels();
|
this.updatePanels();
|
||||||
@ -161,7 +160,8 @@ DemodulatorPanel.prototype.stopDemodulator = function() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.demodulator.stop();
|
this.demodulator.stop();
|
||||||
this.demodulator = false;
|
this.demodulator = null;
|
||||||
|
this.mode = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
DemodulatorPanel.prototype._apply = function(params) {
|
DemodulatorPanel.prototype._apply = function(params) {
|
||||||
|
Loading…
Reference in New Issue
Block a user