chore(core): 串口监视器在非active状态时继续渲染数据
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user