set DTR to false after connecting. workaround for wrong connection detection.
This commit is contained in:
parent
8c33680a12
commit
7248a78053
1 changed files with 2 additions and 0 deletions
|
|
@ -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?"
|
||||
|
|
|
|||
Loading…
Reference in a new issue