mirror of
https://github.com/jketterl/openwebrx.git
synced 2026-01-08 09:39:58 +01:00
fix handling of underlying modulation
This commit is contained in:
parent
28ccf2e6f2
commit
2a6a97774d
|
|
@ -101,12 +101,9 @@ DemodulatorPanel.prototype.setMode = function(requestedModulation, underlyingMod
|
|||
|
||||
var modulation;
|
||||
if (mode.type === 'digimode') {
|
||||
if (underlyingModulation) {
|
||||
modulation = underlyingModulation
|
||||
} else {
|
||||
modulation = mode.underlying[0];
|
||||
}
|
||||
modulation = underlyingModulation = underlyingModulation || mode.underlying[0];
|
||||
} else {
|
||||
underlyingModulation = undefined;
|
||||
modulation = mode.modulation;
|
||||
}
|
||||
|
||||
|
|
@ -147,7 +144,7 @@ DemodulatorPanel.prototype.setMode = function(requestedModulation, underlyingMod
|
|||
|
||||
this.demodulator.start();
|
||||
this.mode = mode;
|
||||
this.underlyingModulation = modulation;
|
||||
this.underlyingModulation = underlyingModulation;
|
||||
|
||||
this.updateButtons();
|
||||
this.updatePanels();
|
||||
|
|
|
|||
Loading…
Reference in a new issue