Minor MeshCMD cleanup.

This commit is contained in:
Ylian Saint-Hilaire 2022-08-03 12:33:30 -07:00
parent 4cd99c5b2f
commit 6ddb7d16bc

View File

@ -2999,17 +2999,16 @@ function ShortToStrX(v) { return String.fromCharCode(v & 0xFF, (v >> 8) & 0xFF);
// //
var sol = null; var sol = null;
var solTimer = null;
// Called to start serial-over-lan terminal // Called to start serial-over-lan terminal
function performAmtTerm(args) { function performAmtTerm(args) {
//try { try {
sol = require('amt-redir-duk')(require('amt-sol')()); sol = require('amt-redir-duk')(require('amt-sol')());
sol.onStateChanged = onSolStateChange; sol.onStateChanged = onSolStateChange;
sol.m.onData = onSolData; sol.m.onData = onSolData;
sol.m.debug = (settings.debuglevel > 0); sol.m.debug = (settings.debuglevel > 0);
sol.Start(settings.hostname, (settings.tls == true) ? 16995 : 16994, settings.username ? 'admin' : settings.username, settings.password, settings.tls); 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 // Called when the serial-over-lan connection state changes