diff --git a/core/serial.js b/core/serial.js index 3ddd329..67c3f33 100644 --- a/core/serial.js +++ b/core/serial.js @@ -176,7 +176,7 @@ To add a new serial device, you must add an object to } var portInfo = { port:serialPort }; - connectionInfo = undefined; + var connectionInfo = undefined; flowControlXOFF = false; if (flowControlTimeout) { clearTimeout(flowControlTimeout); @@ -192,7 +192,6 @@ To add a new serial device, you must add an object to currentDevice = undefined; } else { connectionInfo = cInfo; - connectedPort = serialPort; console.log("Connected", cInfo); if (connectionInfo.portName) portInfo.portName = connectionInfo.portName;