mirror of
https://github.com/esphome/esp-web-tools.git
synced 2025-07-27 05:36:40 +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 command = input.value;
|
||||||
const encoder = new TextEncoder();
|
const encoder = new TextEncoder();
|
||||||
const writer = this.port.writable!.getWriter();
|
const writer = this.port.writable!.getWriter();
|
||||||
await writer.write(encoder.encode(command));
|
await writer.write(encoder.encode(command + "\r\n"));
|
||||||
this._console!.addLine(`> ${command}\n`);
|
this._console!.addLine(`> ${command}\r\n`);
|
||||||
input.value = "";
|
input.value = "";
|
||||||
input.focus();
|
input.focus();
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user