Merge pull request #21 from balloob/patch-1

Fix terminal check
This commit is contained in:
Amey Inamdar 2022-07-06 14:28:00 +08:00 committed by GitHub
commit 9e2e4a0231
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -641,14 +641,14 @@ class ESPLoader {
}
log(str) {
if (this.transport) {
if (this.terminal) {
this.terminal.writeln(str);
} else {
console.log(str);
}
}
write_char(str) {
if (this.transport) {
if (this.terminal) {
this.terminal.write(str);
} else {
console.log(str);