File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1627,18 +1627,21 @@ function web_editor(config) {
1627
1627
1628
1628
var daplink = usePartialFlashing ? window . dapwrapper . daplink : window . daplink ;
1629
1629
daplink . stopSerialRead ( ) ;
1630
+ daplink . removeAllListeners ( DAPjs . DAPLink . EVENT_SERIAL_DATA ) ;
1631
+ REPL . uninstallKeyboard ( ) ;
1632
+ REPL . io . pop ( ) ;
1630
1633
REPL = null ;
1631
1634
}
1632
1635
1633
1636
function doSerial ( ) {
1634
- console . log ( "Setting Up Serial Terminal" ) ;
1635
- // Hide terminal
1637
+ // Hide terminal if it is currently shown
1636
1638
var serialButton = config [ "translate" ] [ "static-strings" ] [ "buttons" ] [ "command-serial" ] ;
1637
1639
if ( $ ( "#repl" ) . css ( 'display' ) != 'none' ) {
1638
1640
closeSerial ( ) ;
1639
1641
return ;
1640
1642
}
1641
1643
1644
+ console . log ( "Setting Up Serial Terminal" ) ;
1642
1645
// Check if we need to connect
1643
1646
if ( $ ( "#command-connect" ) . is ( ":visible" ) ) {
1644
1647
doConnect ( true ) ;
You can’t perform that action at this time.
0 commit comments