From acb392e56c65ce4cf65fca7c334e24304f63e967 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sun, 3 May 2020 13:10:54 +0200 Subject: [PATCH] reset & stabilize modes --- htdocs/lib/DemodulatorPanel.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/lib/DemodulatorPanel.js b/htdocs/lib/DemodulatorPanel.js index 960a4ca..b4c2c07 100644 --- a/htdocs/lib/DemodulatorPanel.js +++ b/htdocs/lib/DemodulatorPanel.js @@ -91,8 +91,6 @@ DemodulatorPanel.prototype.setMode = function(modulation) { return; } - this.mode = mode; - if (mode.type === 'digimode') { modulation = mode.underlying[0]; } @@ -119,6 +117,7 @@ DemodulatorPanel.prototype.setMode = function(modulation) { } this.demodulator.start(); + this.mode = mode; this.updateButtons(); this.updatePanels(); @@ -161,7 +160,8 @@ DemodulatorPanel.prototype.stopDemodulator = function() { return; } this.demodulator.stop(); - this.demodulator = false; + this.demodulator = null; + this.mode = null; } DemodulatorPanel.prototype._apply = function(params) {