'>' to textarea

This commit is contained in:
Sergey Yarkov 2022-11-03 21:18:29 +03:00
parent 99e3797fa5
commit 79b550ed76
No known key found for this signature in database
GPG Key ID: E91CE1FABC619B6F

View File

@ -87,7 +87,7 @@ class Application {
const data = $form.elements.input.value; const data = $form.elements.input.value;
$form.reset(); $form.reset();
if (this.serialPortHandler.isOpened && data) { if (this.serialPortHandler.isOpened && data) {
this.$serialLog.innerHTML += data + '\n'; this.$serialLog.innerHTML += '>' + data + '\n';
await this.serialPortHandler.write(data + '\n'); await this.serialPortHandler.write(data + '\n');
const message = await this.serialPortHandler.read(); const message = await this.serialPortHandler.read();
this.$serialLog.textContent += message.replaceAll(EOT, ''); this.$serialLog.textContent += message.replaceAll(EOT, '');