From 7248a780535b286f873fdc48a9bb432ca77ac540 Mon Sep 17 00:00:00 2001 From: Teja Date: Sat, 28 Mar 2015 19:20:15 +0100 Subject: [PATCH] set DTR to false after connecting. workaround for wrong connection detection. --- src/octoprint/util/comm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index d0e1cd89..6dca6f01 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -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?"