This repository was archived by the owner on Oct 1, 2024. It is now read-only.
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -71,18 +71,18 @@ export class SerialPortCtrl {
71
71
this . _outputChannel . appendLine ( "[Warning] Auto checking serial port open is disabled" ) ;
72
72
return resolve ( ) ;
73
73
}
74
-
74
+
75
75
this . _currentSerialPort . write ( "TestingOpen" + "\r\n" , ( err ) => {
76
76
// TODO: Fix this on the serial port lib: https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/795
77
77
if ( err && ! ( err . message . indexOf ( "Writing to COM port (GetOverlappedResult): Unknown error code 121" ) >= 0 ) ) {
78
78
this . _outputChannel . appendLine ( `[Error] Failed to open the serial port - ${ this . _currentPort } ` ) ;
79
79
reject ( err ) ;
80
80
} else {
81
81
this . _outputChannel . appendLine ( `[Info] Opened the serial port - ${ this . _currentPort } ` ) ;
82
- this . _currentSerialPort . set ( [ ' dtr=true' ] , ( err ) => {
82
+ this . _currentSerialPort . set ( [ " dtr=true" ] , ( err ) => {
83
83
if ( err ) {
84
84
reject ( err ) ;
85
- }
85
+ }
86
86
} ) ;
87
87
resolve ( ) ;
88
88
}
@@ -169,7 +169,7 @@ export class SerialPortCtrl {
169
169
if ( err ) {
170
170
reject ( err ) ;
171
171
} else {
172
- this . _currentSerialPort . set ( [ ' dtr=true' ] , ( err ) => {
172
+ this . _currentSerialPort . set ( [ " dtr=true" ] , ( err ) => {
173
173
if ( err ) {
174
174
reject ( err ) ;
175
175
} else {
You can’t perform that action at this time.
0 commit comments