From 6fd6168901d6ef0761f016d0f48c148b1f01e927 Mon Sep 17 00:00:00 2001 From: BelKed <66956532+BelKed@users.noreply.github.com> Date: Tue, 25 Jan 2022 21:09:34 +0100 Subject: [PATCH] Newline is already in `payload` --- src/serialmonitor/serialportctrl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/serialmonitor/serialportctrl.ts b/src/serialmonitor/serialportctrl.ts index 061af53a..bed5fda9 100644 --- a/src/serialmonitor/serialportctrl.ts +++ b/src/serialmonitor/serialportctrl.ts @@ -105,7 +105,7 @@ export class SerialPortCtrl { this._child.stdout.on("data", (data) => { if (this.isActive) { const jsonObj = JSON.parse(data.toString()) - this._bufferedOutputChannel.append(jsonObj["timestamp"] + jsonObj["payload"] + "\n"); + this._bufferedOutputChannel.append(jsonObj["timestamp"] + jsonObj["payload"]); } }); // TODO: add message check to ensure _child spawned without errors