Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit 9abbe72

Browse files
authored
Merge pull request #1140 from microsoft/serial-fix
Serial fix
2 parents a0add3e + abcfcc1 commit 9abbe72

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/serialmonitor/serialportctrl.ts

+12-1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ export class SerialPortCtrl {
7979
reject(err);
8080
} else {
8181
this._outputChannel.appendLine(`[Info] Opened the serial port - ${this._currentPort}`);
82+
this._currentSerialPort.set(["dtr=true"], (err) => {
83+
if (err) {
84+
reject(err);
85+
}
86+
});
8287
resolve();
8388
}
8489
});
@@ -164,7 +169,13 @@ export class SerialPortCtrl {
164169
if (err) {
165170
reject(err);
166171
} else {
167-
resolve();
172+
this._currentSerialPort.set(["dtr=true"], (err) => {
173+
if (err) {
174+
reject(err);
175+
} else {
176+
resolve();
177+
}
178+
});
168179
}
169180
});
170181
});

0 commit comments

Comments
 (0)