mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-02-20 22:34:18 +01:00
use bandpass from underlying mode if available
This commit is contained in:
parent
8bc2fba52a
commit
8d2671fadb
|
|
@ -135,8 +135,10 @@ DemodulatorPanel.prototype.setMode = function(requestedModulation, underlyingMod
|
|||
|
||||
if (mode.type === 'digimode') {
|
||||
this.demodulator.set_secondary_demod(mode.modulation);
|
||||
if (mode.bandpass) {
|
||||
this.demodulator.setBandpass(mode.bandpass);
|
||||
var uMode = Modes.findByModulation(underlyingModulation);
|
||||
var bandpass = mode.bandpass || (uMode && uMode.bandpass);
|
||||
if (bandpass) {
|
||||
this.demodulator.setBandpass(bandpass);
|
||||
} else {
|
||||
this.demodulator.disableBandpass();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue