disable signal set on port open, this cause some device reboot, which is not expected.

This commit is contained in:
Xen 2020-07-26 11:31:26 +08:00
parent ee858787dd
commit 06ba8f406d
1 changed files with 4 additions and 3 deletions

View File

@ -159,9 +159,10 @@ document.getElementById("port-switch").onclick = (e) => {
if (config.general.modemSignal === true) {
modemSignalTimer = setInterval(modemSignalTimerHandle, 100);
}
port.set({ rts: true, dtr: true }, (e) => {
if (e !== null) console.error(e);
});
// Set below signal will cause some device reboot.
// port.set({ rts: true, dtr: true }, (e) => {
// if (e !== null) console.error(e);
// });git
});
port.on("error", (e) => {