fix(core): 设备关闭时复位波特率以防止重新打开时波特率改变所导致的异常问题

This commit is contained in:
王立帮
2025-10-23 12:40:25 +08:00
parent b0ccec821d
commit 9e70ce9661

View File

@@ -218,6 +218,7 @@ class Serial {
async close() { async close() {
this.#isOpened_ = false; this.#isOpened_ = false;
this.#baud_ = 0;
} }
async toggle() { async toggle() {