Skip to content

Commit

Permalink
Merge pull request #173 from mariusGundersen/fix-global-variables
Browse files Browse the repository at this point in the history
Fixed two issues with global variables
  • Loading branch information
gfwilliams authored Dec 8, 2023
2 parents ec17902 + ea3f251 commit af1ffa3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/serial.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
Expand Down

0 comments on commit af1ffa3

Please sign in to comment.