Fix: 修复electron下arduino在上传后获取代码区串口波特率出错

This commit is contained in:
王立帮
2025-03-23 02:02:39 +08:00
parent 3b53ed4c8f
commit 4f3f00bb22
3 changed files with 11 additions and 1 deletions

View File

@@ -335,6 +335,9 @@ class Serial {
if (this.isOpened()) {
await this.close();
}
this.#events_ = null;
this.#encoder_ = null;
this.#decoder_ = null;
}
bind(type, func) {