espressif / esptool-js

Javascript implementation of flasher tool for Espressif chips, running in web browser using WebSerial.
https://espressif.github.io/esptool-js/
Apache License 2.0
276 stars 108 forks source link

Fix terminal check #21

Closed balloob closed 2 years ago

balloob commented 2 years ago

The log and write_char methods incorrectly checked if this.transport was set before calling a method on this.terminal. Looks like this should be a check against this.terminal instead.