From 90887c7b65615ead59bd88b51339450765c6a72e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=AB=8B=E5=B8=AE?= <3294713004@qq.com> Date: Thu, 8 May 2025 23:49:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=B8=B2=E5=8F=A3?= =?UTF-8?q?=E9=94=80=E6=AF=81=E6=97=B6dispose=E6=96=B9=E6=B3=95=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/serial.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/serial.js b/src/common/serial.js index 2cf1e7d..7656e69 100644 --- a/src/common/serial.js +++ b/src/common/serial.js @@ -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;