From: daid Date: Thu, 20 Sep 2012 14:34:08 +0000 (+0200) Subject: . X-Git-Tag: 13.03~329^2~3 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=5678f916179692fa243d3273f2cf4353d9d16848;p=cura.git . --- diff --git a/Cura/util/machineCom.py b/Cura/util/machineCom.py index 384a03b7..80297719 100644 --- a/Cura/util/machineCom.py +++ b/Cura/util/machineCom.py @@ -366,8 +366,9 @@ class MachineCom(object): return self._log('Send: %s' % (cmd)) try: - self._serial.write(cmd) - self._serial.write('\n') + #TODO: This can throw a write timeout exception, but we do not want timeout on writes. Find a fix for this. + # Oddly enough, the write timeout is not even set and thus we should not get a write timeout. + self._serial.write(cmd + '\n') except: self._log("Unexpected error while writing serial port: %s" % (getExceptionString())) self._errorValue = getExceptionString()