File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1616 "@codemirror/view" : " ^6.26.3" ,
1717 "@emotion/react" : " ^11.11.4" ,
1818 "@emotion/styled" : " ^11.11.5" ,
19- "@microbit/microbit-connection" : " ^0.0.0-alpha.10 " ,
19+ "@microbit/microbit-connection" : " ^0.0.0-alpha.14 " ,
2020 "@microbit/microbit-fs" : " ^0.9.2" ,
2121 "@sanity/block-content-to-react" : " ^3.0.0" ,
2222 "@sanity/image-url" : " ^1.0.1" ,
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ export class MockDeviceConnection
9393 }
9494
9595 async disconnect ( ) : Promise < void > {
96- this . setStatus ( ConnectionStatus . NOT_CONNECTED ) ;
96+ this . setStatus ( ConnectionStatus . DISCONNECTED ) ;
9797 }
9898
9999 async serialWrite ( data : string ) : Promise < void > {
Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ export class SimulatorDeviceConnection
291291
292292 async initialize ( ) : Promise < void > {
293293 window . addEventListener ( "message" , this . messageListener ) ;
294- this . setStatus ( ConnectionStatus . NOT_CONNECTED ) ;
294+ this . setStatus ( ConnectionStatus . DISCONNECTED ) ;
295295 }
296296
297297 dispose ( ) {
@@ -334,7 +334,7 @@ export class SimulatorDeviceConnection
334334
335335 async disconnect ( ) : Promise < void > {
336336 window . removeEventListener ( "message" , this . messageListener ) ;
337- this . setStatus ( ConnectionStatus . NOT_CONNECTED ) ;
337+ this . setStatus ( ConnectionStatus . DISCONNECTED ) ;
338338 }
339339
340340 async serialWrite ( data : string ) : Promise < void > {
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ export class ProjectActions {
158158 if (
159159 ! force &&
160160 ( ! showConnectHelpSetting ||
161- this . device . status === ConnectionStatus . NOT_CONNECTED )
161+ this . device . status === ConnectionStatus . DISCONNECTED )
162162 ) {
163163 return true ;
164164 }
@@ -511,7 +511,7 @@ export class ProjectActions {
511511
512512 if (
513513 this . device . status === ConnectionStatus . NO_AUTHORIZED_DEVICE ||
514- this . device . status === ConnectionStatus . NOT_CONNECTED
514+ this . device . status === ConnectionStatus . DISCONNECTED
515515 ) {
516516 const connected = await this . connect (
517517 tryAgain || false ,
You can’t perform that action at this time.
0 commit comments