Skip to content

Commit 0c4abfb

Browse files
committed
Fix .isConnected
1 parent 20fc800 commit 0c4abfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,7 @@ To do:
11901190
},
11911191
/// Did `write` and `eval` manage to create a connection?
11921192
isConnected : function() {
1193-
return connection!==undefined;
1193+
return connection!==undefined && connection.isOpen;
11941194
},
11951195
/// get the connection used by `write` and `eval`, or return undefined
11961196
getConnection : function() {

0 commit comments

Comments
 (0)