File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -57,8 +57,6 @@ export class EmbeddedKernel extends BaseKernel {
57
57
58
58
console . log ( "[Kernel] executeRequest - Processing code" ) ;
59
59
const { code } = content ;
60
- console . log ( "GOT CODE AT KERNEL LEVEL: " , code ) ;
61
- console . log ( "Type of CODE AT KERNEL LEVEL: " , typeof code ) ;
62
60
63
61
console . log ( 'Before reconnect check' ) ;
64
62
if ( code . includes ( reconnectString ) ) {
@@ -68,7 +66,9 @@ export class EmbeddedKernel extends BaseKernel {
68
66
console . log ( 'Device disconnected' ) ;
69
67
await this . serviceContainer . deviceService . connect ( ) ;
70
68
console . log ( 'Device connected' ) ;
69
+ this . stream ( "Device Connected!" )
71
70
}
71
+ this . stream ( "Device Try Connect Done!" )
72
72
console . log ( 'After reconnect check' ) ;
73
73
74
74
try {
@@ -86,6 +86,8 @@ export class EmbeddedKernel extends BaseKernel {
86
86
} ;
87
87
}
88
88
89
+
90
+
89
91
console . log ( "[Kernel] executeRequest - Executing command via ConsoleService" ) ;
90
92
// Execute the command and handle the output
91
93
const result = await this . serviceContainer . consoleService . executeCommand ( code , ( content ) => {
Original file line number Diff line number Diff line change @@ -21,9 +21,7 @@ export class DeviceService {
21
21
}
22
22
23
23
async connect ( ) : Promise < void > {
24
- if ( ! this . port ) {
25
- await this . requestPort ( ) ;
26
- }
24
+ await this . requestPort ( ) ;
27
25
28
26
if ( ! this . port ) {
29
27
throw new Error ( 'No port selected' ) ;
You can’t perform that action at this time.
0 commit comments