reset secondary demodulator, too

This commit is contained in:
Jakob Ketterl 2020-04-26 23:14:34 +02:00
parent 6a8168025d
commit 25a7bbd86a

View File

@ -1494,7 +1494,7 @@ function parseHash() {
function validateHash() { function validateHash() {
var params = parseHash(); var params = parseHash();
params = Object.keys(params).filter(function(key) { params = Object.keys(params).filter(function(key) {
if (key == 'freq' || key == 'mod') { if (key == 'freq' || key == 'mod' || key == 'secondary_mod') {
return params.freq && Math.abs(params.freq - center_freq) < bandwidth; return params.freq && Math.abs(params.freq - center_freq) < bandwidth;
} }
return true; return true;