File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -1131,12 +1131,24 @@ io.on("connection", function(socket) {
1131
1131
1132
1132
if ( status . comms . connectionStatus < 1 ) {
1133
1133
1134
+
1135
+
1134
1136
if ( data . type == "usb" ) {
1135
1137
console . log ( "connect" , "Connecting to " + data . port + " via " + data . type ) ;
1138
+
1139
+ // Fix for autoreset getting stuck on MacOS with Silabs Chip
1140
+ var allowRtsCts = false
1141
+ var allowHupcl = false
1142
+ if ( process . platform == 'darwin' ) {
1143
+ allowRtsCts = true
1144
+ allowHupcl = true
1145
+ }
1146
+
1136
1147
port = new SerialPort ( {
1137
1148
path : data . port ,
1138
1149
baudRate : parseInt ( data . baud ) ,
1139
- //hupcl: false // Don't set DTR - useful for X32 Reset
1150
+ rtscts : allowRtsCts ,
1151
+ hupcl : allowHupcl // Don't set DTR - useful for X32 Reset
1140
1152
} ) ;
1141
1153
} else if ( data . type == "telnet" ) {
1142
1154
console . log ( "connect" , "Connecting to " + data . ip + " via " + data . type ) ;
@@ -1180,10 +1192,6 @@ io.on("connection", function(socket) {
1180
1192
} ) ;
1181
1193
1182
1194
port . on ( "open" , function ( e ) {
1183
- port . set ( {
1184
- dtr : true ,
1185
- rts : true
1186
- } ) ;
1187
1195
portOpened ( port , data )
1188
1196
} ) ;
1189
1197
You can’t perform that action at this time.
0 commit comments