We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f0d900 commit d5700f1Copy full SHA for d5700f1
examples/rtt/web.html
@@ -123,7 +123,7 @@
123
// allow empty lines too
124
// if (line_input.length) {
125
term.write('\r\n');
126
- cmd = line_input;
+ cmd = line_input + "\r\n";
127
console.log('sending: \"' + line_input + '\"');
128
line_input = "";
129
//}
@@ -165,7 +165,7 @@
165
166
// send to target
167
if (cmd.length) {
168
- cmdBytes = new TextEncoder().encode(cmd + "\r\n");
+ cmdBytes = new TextEncoder().encode(cmd);
169
ret = await rtt.write(0, cmdBytes);
170
if (ret < 0)
171
console.log("cannot write", cmdBytes, "chars");
0 commit comments