daid 2012-09-20 16:34:08 +02:00
parent 19cdf49733
commit 5678f91617
1 changed files with 3 additions and 2 deletions

View File

@ -366,8 +366,9 @@ class MachineCom(object):
return return
self._log('Send: %s' % (cmd)) self._log('Send: %s' % (cmd))
try: try:
self._serial.write(cmd) #TODO: This can throw a write timeout exception, but we do not want timeout on writes. Find a fix for this.
self._serial.write('\n') # Oddly enough, the write timeout is not even set and thus we should not get a write timeout.
self._serial.write(cmd + '\n')
except: except:
self._log("Unexpected error while writing serial port: %s" % (getExceptionString())) self._log("Unexpected error while writing serial port: %s" % (getExceptionString()))
self._errorValue = getExceptionString() self._errorValue = getExceptionString()