File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -72,11 +72,11 @@ export class SerialMonitor implements vscode.Disposable {
72
72
this . _baudRateStatusBar . command = "arduino.changeBaudRate" ;
73
73
this . _baudRateStatusBar . tooltip = "Baud Rate" ;
74
74
this . _baudRateStatusBar . text = defaultBaudRate . toString ( ) ;
75
- this . updatePortListStatus ( null ) ;
75
+ this . updatePortListStatus ( ) ;
76
76
77
77
const dc = DeviceContext . getInstance ( ) ;
78
78
dc . onChangePort ( ( ) => {
79
- this . updatePortListStatus ( null ) ;
79
+ this . updatePortListStatus ( ) ;
80
80
} ) ;
81
81
}
82
82
public get initialized ( ) : boolean {
@@ -210,8 +210,7 @@ export class SerialMonitor implements vscode.Disposable {
210
210
}
211
211
}
212
212
213
- // TODO EW: use default value for port function parameter and change all updatePortListStatus(null) calls accordingly
214
- private updatePortListStatus ( port : string ) {
213
+ private updatePortListStatus ( port ?: string ) {
215
214
const dc = DeviceContext . getInstance ( ) ;
216
215
if ( port ) {
217
216
dc . port = port ;
You can’t perform that action at this time.
0 commit comments