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