fix start_freq not working on neighboring profiles
This commit is contained in:
parent
1c2125f969
commit
dd3bf121c1
@ -276,7 +276,7 @@ DemodulatorPanel.prototype.validateHash = function(params) {
|
|||||||
var self = this;
|
var self = this;
|
||||||
params = Object.keys(params).filter(function(key) {
|
params = Object.keys(params).filter(function(key) {
|
||||||
if (key == 'freq' || key == 'mod' || key == 'secondary_mod' || key == 'sql') {
|
if (key == 'freq' || key == 'mod' || key == 'secondary_mod' || key == 'sql') {
|
||||||
return params.freq && Math.abs(params.freq - self.center_freq) < bandwidth;
|
return params.freq && Math.abs(params.freq - self.center_freq) < bandwidth / 2;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}).reduce(function(p, key) {
|
}).reduce(function(p, key) {
|
||||||
|
Loading…
Reference in New Issue
Block a user