From 54142f4f15187b878fdd3d6698ac82379f3c2080 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sat, 27 Feb 2021 01:23:59 +0100 Subject: [PATCH] allow squelch_auto_margin = 0 --- 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 be3269f..33751b0 100644 --- a/htdocs/lib/DemodulatorPanel.js +++ b/htdocs/lib/DemodulatorPanel.js @@ -341,7 +341,7 @@ DemodulatorPanel.prototype.updateSquelch = function() { }; DemodulatorPanel.prototype.setSquelchMargin = function(margin) { - if (!margin || this.squelchMargin == margin) return; + if (typeof(margin) === 'undefined' || this.squelchMargin == margin) return; this.squelchMargin = margin; };