From 20569ead0f67c1051c142aab093413c14b8e5d36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=BB=E7=BE=BD=E9=A3=9E?= Date: Fri, 3 Jul 2020 16:46:12 +0800 Subject: [PATCH] fix br newline when new command --- lib/drivers/gcode.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/drivers/gcode.js b/lib/drivers/gcode.js index 0888925..aaf03b3 100644 --- a/lib/drivers/gcode.js +++ b/lib/drivers/gcode.js @@ -22,6 +22,8 @@ GCodeDriver.prototype = { command += ' ' + k.toUpperCase() + params[k]; }); } + + command += '\n' this.stream.write(command); }