chore(core): 串口监视器在非active状态时继续渲染数据

This commit is contained in:
王立帮
2026-01-13 22:05:25 +08:00
parent 5ab2a6ba4f
commit 1413c24cd4

View File

@@ -274,10 +274,7 @@ class StatusBarSerial extends PageBase {
}); });
this.#serial_.bind('onChar', (char) => { this.#serial_.bind('onChar', (char) => {
if (!this.#output_.isActive() || !this.isActive() || !this.#reading_) { if (!this.#reading_ || this.#output_.hexChecked()) {
return;
}
if (this.#output_.hexChecked()) {
return; return;
} }
if (this.#output_.timestampChecked()) { if (this.#output_.timestampChecked()) {
@@ -313,10 +310,7 @@ class StatusBarSerial extends PageBase {
}); });
this.#serial_.bind('onByte', (byte) => { this.#serial_.bind('onByte', (byte) => {
if (!this.#output_.isActive() || !this.isActive() || !this.#reading_) { if (!this.#reading_ || !this.#output_.hexChecked()) {
return;
}
if (!this.#output_.hexChecked()) {
return; return;
} }
let str = byte.toString(16).toUpperCase(); let str = byte.toString(16).toUpperCase();