drop the passed modulation if the frequency is invalid

This commit is contained in:
Jakob Ketterl 2020-03-26 15:36:49 +01:00
parent 69b43b40b5
commit 0d93186066

View File

@ -1520,8 +1520,8 @@ function parseHash() {
function validateHash() {
var params = parseHash();
params = Object.keys(params).filter(function(key) {
if (key == 'freq') {
return Math.abs(params[key] - center_freq) < bandwidth;
if (key == 'freq' || key == 'mod') {
return params.freq && Math.abs(params.freq - center_freq) < bandwidth;
}
return true;
}).reduce(function(p, key) {