fix: 修复串口销毁时dispose方法执行异常

This commit is contained in:
王立帮
2025-05-08 23:49:04 +08:00
parent 20a473d868
commit 90887c7b65

View File

@@ -195,7 +195,7 @@ export default class Serial extends EventsBase {
async dispose() {
await this.close();
this.disposeEvent();
this.reset();
this.#serialport_ = null;
this.#parserBytes_ = null;
this.#parserLine_ = null;