From 8732001ee475d58b9e40aa7763b251733de1a896 Mon Sep 17 00:00:00 2001 From: Daid Date: Tue, 25 Sep 2012 11:51:34 +0200 Subject: [PATCH] Do a single write instead of two --- Cura/util/machineCom.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Cura/util/machineCom.py b/Cura/util/machineCom.py index 384a03b7..811e4b9a 100644 --- a/Cura/util/machineCom.py +++ b/Cura/util/machineCom.py @@ -366,8 +366,7 @@ class MachineCom(object): return self._log('Send: %s' % (cmd)) try: - self._serial.write(cmd) - self._serial.write('\n') + self._serial.write(cmd + '\n') except: self._log("Unexpected error while writing serial port: %s" % (getExceptionString())) self._errorValue = getExceptionString() -- 2.30.2