chiark
/
gitweb
/
~ianmdlvl
/
cura.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4df94e7
)
Do a single write instead of two
author
Daid
<daid303@gmail.com>
Tue, 25 Sep 2012 09:51:34 +0000
(11:51 +0200)
committer
Daid
<daid303@gmail.com>
Tue, 25 Sep 2012 09:51:34 +0000
(11:51 +0200)
Cura/util/machineCom.py
patch
|
blob
|
history
diff --git
a/Cura/util/machineCom.py
b/Cura/util/machineCom.py
index 384a03b79cd6f2a4efe8b3729604e2435887ed99..811e4b9a84e3952793627bc1a645c3192f07ba59 100644
(file)
--- 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()