drop the passed modulation if the frequency is invalid
This commit is contained in:
parent
69b43b40b5
commit
0d93186066
@ -1520,8 +1520,8 @@ 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') {
|
if (key == 'freq' || key == 'mod') {
|
||||||
return Math.abs(params[key] - center_freq) < bandwidth;
|
return params.freq && Math.abs(params.freq - center_freq) < bandwidth;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}).reduce(function(p, key) {
|
}).reduce(function(p, key) {
|
||||||
|
Loading…
Reference in New Issue
Block a user