From 6ddb7d16bca1c85a707b54b25c052add3af68a14 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Wed, 3 Aug 2022 12:33:30 -0700 Subject: [PATCH] Minor MeshCMD cleanup. --- agents/meshcmd.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/agents/meshcmd.js b/agents/meshcmd.js index 39012bdd..ac782e8c 100644 --- a/agents/meshcmd.js +++ b/agents/meshcmd.js @@ -2999,17 +2999,16 @@ function ShortToStrX(v) { return String.fromCharCode(v & 0xFF, (v >> 8) & 0xFF); // var sol = null; -var solTimer = null; // Called to start serial-over-lan terminal function performAmtTerm(args) { - //try { + try { sol = require('amt-redir-duk')(require('amt-sol')()); sol.onStateChanged = onSolStateChange; sol.m.onData = onSolData; sol.m.debug = (settings.debuglevel > 0); sol.Start(settings.hostname, (settings.tls == true) ? 16995 : 16994, settings.username ? 'admin' : settings.username, settings.password, settings.tls); - //} catch (ex) { console.log(ex); } + } catch (ex) { console.log(ex); } } // Called when the serial-over-lan connection state changes