From dd3bf121c1918a71c1ee14f0ba420475a9d5841c Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sat, 15 Aug 2020 16:05:50 +0200 Subject: [PATCH] fix start_freq not working on neighboring profiles --- htdocs/lib/DemodulatorPanel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/lib/DemodulatorPanel.js b/htdocs/lib/DemodulatorPanel.js index c276392..421487c 100644 --- a/htdocs/lib/DemodulatorPanel.js +++ b/htdocs/lib/DemodulatorPanel.js @@ -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) {