File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ export class EmbeddedKernel extends BaseKernel {
41
41
42
42
outputResponse ( msg : string ) : void {
43
43
console . log ( "[Kernel] outputResponse - Streaming output:" , msg ) ;
44
-
44
+
45
45
msg += '\n' ;
46
46
47
47
this . stream ( {
@@ -74,7 +74,7 @@ export class EmbeddedKernel extends BaseKernel {
74
74
// Reconnect the device or connect for the first time
75
75
this . outputResponse ( "Reconnect command detected, reconnecting device..." ) ;
76
76
await this . serviceContainer . deviceService . disconnect ( ) ;
77
- await this . serviceContainer . deviceService . connect ( this . outputResponse ) ;
77
+ await this . serviceContainer . deviceService . connect ( this . outputResponse . bind ( this ) ) ;
78
78
}
79
79
80
80
try {
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ export class DeviceService {
70
70
}
71
71
72
72
if ( ! this . portChecked ) {
73
- logCallback ( 'Port cannot be opened.\nIs the port already open in another application or tab?' ) ;
73
+ logCallback ( 'Port cannot be opened.\nDid you select the correct port?\ nIs the port already open in another application or tab?' ) ;
74
74
return ;
75
75
}
76
76
@@ -92,6 +92,7 @@ export class DeviceService {
92
92
throw err ;
93
93
}
94
94
95
+ logCallback ( 'Connected!' ) ;
95
96
const event = new CustomEvent ( "deviceConnected" , {
96
97
detail : { msg : "Connected" }
97
98
} ) ;
You can’t perform that action at this time.
0 commit comments