Do a single write instead of two

This commit is contained in:
Daid committed 2012-09-25 11:51:34 +02:00
1 parent 4df94e7da4
commit 8732001ee4
1 file changed
+1 -2
+1 -2
View File
@@ -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()