mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-04-07 07:23:46 +00:00
use bandpass from underlying mode if available
This commit is contained in:
parent
8bc2fba52a
commit
8d2671fadb
1 changed files with 4 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue