From 1413c24cd490b7bfd88651f1fce4ded9f2fe014d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=AB=8B=E5=B8=AE?= <3294713004@qq.com> Date: Tue, 13 Jan 2026 22:05:25 +0800 Subject: [PATCH] =?UTF-8?q?chore(core):=20=E4=B8=B2=E5=8F=A3=E7=9B=91?= =?UTF-8?q?=E8=A7=86=E5=99=A8=E5=9C=A8=E9=9D=9Eactive=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=97=B6=E7=BB=A7=E7=BB=AD=E6=B8=B2=E6=9F=93=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/mixly-modules/common/statusbar-serial.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/common/modules/mixly-modules/common/statusbar-serial.js b/common/modules/mixly-modules/common/statusbar-serial.js index 6f3dc990..483c4531 100644 --- a/common/modules/mixly-modules/common/statusbar-serial.js +++ b/common/modules/mixly-modules/common/statusbar-serial.js @@ -274,10 +274,7 @@ class StatusBarSerial extends PageBase { }); this.#serial_.bind('onChar', (char) => { - if (!this.#output_.isActive() || !this.isActive() || !this.#reading_) { - return; - } - if (this.#output_.hexChecked()) { + if (!this.#reading_ || this.#output_.hexChecked()) { return; } if (this.#output_.timestampChecked()) { @@ -313,10 +310,7 @@ class StatusBarSerial extends PageBase { }); this.#serial_.bind('onByte', (byte) => { - if (!this.#output_.isActive() || !this.isActive() || !this.#reading_) { - return; - } - if (!this.#output_.hexChecked()) { + if (!this.#reading_ || !this.#output_.hexChecked()) { return; } let str = byte.toString(16).toUpperCase();