Fix terminal check

This commit is contained in:
Paulus Schoutsen 2022-07-05 21:30:23 -07:00 committed by GitHub
parent 081864a2dd
commit c336216638
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);