set DTR to false after connecting. workaround for wrong connection detection.

This commit is contained in:
Teja 2015-03-28 19:20:15 +01:00
parent 8c33680a12
commit 7248a78053

View file

@ -1104,6 +1104,8 @@ class MachineCom(object):
self._serial.close()
self._serial.parity = serial.PARITY_NONE
self._serial.open()
if self._grbl :
self._serial.setDTR(False) # Drop DTR
except:
self._log("Unexpected error while connecting to serial port: %s %s" % (self._port, getExceptionString()))
self._errorValue = "Failed to open serial port, permissions correct?"