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();