File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -1455,6 +1455,11 @@ function web_editor(config) {
1455
1455
1456
1456
p . finally ( function ( ) {
1457
1457
console . log ( 'Disconnection Complete' ) ;
1458
+ document . dispatchEvent ( new CustomEvent ( 'webusb' , { 'detail' : {
1459
+ 'flash-type' : 'webusb' ,
1460
+ 'event-type' : 'info' ,
1461
+ 'message' : 'disconnected'
1462
+ } } ) ) ;
1458
1463
} ) ;
1459
1464
1460
1465
return p ;
@@ -1492,10 +1497,12 @@ function web_editor(config) {
1492
1497
$ ( "#flashing-overlay-container" ) . css ( "display" , "flex" ) ;
1493
1498
1494
1499
if ( usePartialFlashing ) {
1495
- // Push binary to board
1496
- p = doDisconnect ( )
1500
+ REPL = null ;
1501
+ $ ( "#repl" ) . empty ( ) ;
1502
+
1503
+ p = window . dapwrapper . disconnectAsync ( )
1497
1504
. then ( function ( ) {
1498
- return doConnect ( ) ;
1505
+ return PartialFlashing . connectDapAsync ( ) ;
1499
1506
} )
1500
1507
. then ( function ( ) {
1501
1508
var output = generateFullHex ( "bytes" ) ;
You can’t perform that action at this time.
0 commit comments