fix start_freq not working on neighboring profiles

This commit is contained in:
Jakob Ketterl 2020-08-15 16:05:50 +02:00
parent 1c2125f969
commit dd3bf121c1
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ DemodulatorPanel.prototype.validateHash = function(params) {
var self = this;
params = Object.keys(params).filter(function(key) {
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;
}).reduce(function(p, key) {