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; };