fix(core): 修复串口输出为字符串时无法显示时间戳
This commit is contained in:
@@ -287,7 +287,7 @@ class StatusBarSerial extends PageBase {
|
|||||||
} else {
|
} else {
|
||||||
this.addValue(char);
|
this.addValue(char);
|
||||||
}
|
}
|
||||||
if (char === '\r') {
|
if (char === '\n') {
|
||||||
this.#addTimestamp_ = true;
|
this.#addTimestamp_ = true;
|
||||||
} else {
|
} else {
|
||||||
this.#addTimestamp_ = false;
|
this.#addTimestamp_ = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user