Commit 7f5c8554 authored by Kliment Yanev's avatar Kliment Yanev

Don't abort connect if DTR setting fails. Should fix #601

parent acc9117d
......@@ -197,8 +197,11 @@ class printcore():
parity = PARITY_ODD)
self.printer.close()
self.printer.parity = PARITY_NONE
if platform.system() != "Linux": #there is a bug in pySerial preventing this from working on Linux, sadly.
try: #this appears not to work on many platforms, so we're going to call it but not care if it fails
self.printer.setDTR(dtr);
except:
#self.logError(_("Could not set DTR on this platform")) #not sure whether to output an error message
pass
self.printer.open()
except SerialException as e:
self.logError(_("Could not connect to %s at baudrate %s:") % (self.port, self.baud) +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment