@@ -184,7 +184,7 @@ export class MonitorService extends CoreClientAware implements Disposable {
184
184
this . updateClientsSettings ( {
185
185
monitorUISettings : {
186
186
connectionStatus : 'connected' ,
187
- connected : true ,
187
+ connected : true , // TODO: should be removed when plotter app understand the `connectionStatus` message
188
188
serialPort : this . port . address ,
189
189
} ,
190
190
} ) ;
@@ -196,7 +196,7 @@ export class MonitorService extends CoreClientAware implements Disposable {
196
196
this . updateClientsSettings ( {
197
197
monitorUISettings : {
198
198
connectionStatus : 'not-connected' ,
199
- connected : false ,
199
+ connected : false , // TODO: should be removed when plotter app understand the `connectionStatus` message
200
200
} ,
201
201
} ) ;
202
202
@@ -268,7 +268,7 @@ export class MonitorService extends CoreClientAware implements Disposable {
268
268
this . updateClientsSettings ( {
269
269
monitorUISettings : {
270
270
connectionStatus : 'connected' ,
271
- connected : true ,
271
+ connected : true , // TODO: should be removed when plotter app understand the `connectionStatus` message
272
272
serialPort : this . port . address ,
273
273
} ,
274
274
} ) ;
@@ -311,7 +311,10 @@ export class MonitorService extends CoreClientAware implements Disposable {
311
311
if ( duplex === this . duplex ) {
312
312
this . duplex = null ;
313
313
this . updateClientsSettings ( {
314
- monitorUISettings : { connected : false } ,
314
+ monitorUISettings : {
315
+ connected : false , // TODO: should be removed when plotter app understand the `connectionStatus` message
316
+ connectionStatus : 'not-connected' ,
317
+ } ,
315
318
} ) ;
316
319
}
317
320
this . logger . info (
@@ -322,7 +325,10 @@ export class MonitorService extends CoreClientAware implements Disposable {
322
325
if ( duplex === this . duplex ) {
323
326
this . duplex = null ;
324
327
this . updateClientsSettings ( {
325
- monitorUISettings : { connected : false } ,
328
+ monitorUISettings : {
329
+ connected : false , // TODO: should be removed when plotter app understand the `connectionStatus` message
330
+ connectionStatus : 'not-connected' ,
331
+ } ,
326
332
} ) ;
327
333
}
328
334
this . logger . info (
@@ -545,7 +551,7 @@ export class MonitorService extends CoreClientAware implements Disposable {
545
551
...settings . monitorUISettings ,
546
552
connectionStatus,
547
553
serialPort : this . port . address ,
548
- connected : isMonitorConnected ( connectionStatus ) ,
554
+ connected : isMonitorConnected ( connectionStatus ) , // TODO: should be removed when plotter app understand the `connectionStatus` message
549
555
} ,
550
556
pluggableMonitorSettings : reconciledSettings ,
551
557
} ) ;
0 commit comments