Fix terminal check
This commit is contained in:
parent
081864a2dd
commit
c336216638
@ -641,14 +641,14 @@ class ESPLoader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
log(str) {
|
log(str) {
|
||||||
if (this.transport) {
|
if (this.terminal) {
|
||||||
this.terminal.writeln(str);
|
this.terminal.writeln(str);
|
||||||
} else {
|
} else {
|
||||||
console.log(str);
|
console.log(str);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
write_char(str) {
|
write_char(str) {
|
||||||
if (this.transport) {
|
if (this.terminal) {
|
||||||
this.terminal.write(str);
|
this.terminal.write(str);
|
||||||
} else {
|
} else {
|
||||||
console.log(str);
|
console.log(str);
|
||||||
|
Loading…
Reference in New Issue
Block a user