mirror of
https://github.com/esphome/esp-web-tools.git
synced 2025-07-23 19:56:34 +00:00
Finish sending commands with \r\n (#97)
This commit is contained in:
parent
69eec42e7a
commit
da4a7871e4
@ -186,8 +186,8 @@ export class EwtConsole extends HTMLElement {
|
||||
const command = input.value;
|
||||
const encoder = new TextEncoder();
|
||||
const writer = this.port.writable!.getWriter();
|
||||
await writer.write(encoder.encode(command));
|
||||
this._console!.addLine(`> ${command}\n`);
|
||||
await writer.write(encoder.encode(command + "\r\n"));
|
||||
this._console!.addLine(`> ${command}\r\n`);
|
||||
input.value = "";
|
||||
input.focus();
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user