File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -1133,18 +1133,21 @@ io.on("connection", function(socket) {
1133
1133
1134
1134
if ( data . type == "usb" ) {
1135
1135
console . log ( "connect" , "Connecting to " + data . port + " via " + data . type ) ;
1136
+
1137
+ const defaultSetFlags : SetOptions = {
1138
+ brk : false ,
1139
+ cts : false ,
1140
+ dtr : false ,
1141
+ rts : false ,
1142
+ }
1143
+
1136
1144
port = new SerialPort ( {
1137
1145
path : data . port ,
1138
1146
baudRate : parseInt ( data . baud ) ,
1139
1147
autoOpen : false
1140
1148
//hupcl: false // Don't set DTR - useful for X32 Reset
1141
1149
} ) ;
1142
- port . set ( {
1143
- setOptions : {
1144
- dtr : true ,
1145
- rts : true
1146
- }
1147
- } )
1150
+ port . set ( defaultSetFlags )
1148
1151
port . open ( )
1149
1152
} else if ( data . type == "telnet" ) {
1150
1153
console . log ( "connect" , "Connecting to " + data . ip + " via " + data . type ) ;
You can’t perform that action at this time.
0 commit comments