Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Printrun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
Printrun
Commits
7f5c8554
Commit
7f5c8554
authored
Feb 03, 2015
by
Kliment Yanev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't abort connect if DTR setting fails. Should fix #601
parent
acc9117d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
printcore.py
printrun/printcore.py
+4
-1
No files found.
printrun/printcore.py
View file @
7f5c8554
...
@@ -197,8 +197,11 @@ class printcore():
...
@@ -197,8 +197,11 @@ class printcore():
parity
=
PARITY_ODD
)
parity
=
PARITY_ODD
)
self
.
printer
.
close
()
self
.
printer
.
close
()
self
.
printer
.
parity
=
PARITY_NONE
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
);
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
()
self
.
printer
.
open
()
except
SerialException
as
e
:
except
SerialException
as
e
:
self
.
logError
(
_
(
"Could not connect to
%
s at baudrate
%
s:"
)
%
(
self
.
port
,
self
.
baud
)
+
self
.
logError
(
_
(
"Could not connect to
%
s at baudrate
%
s:"
)
%
(
self
.
port
,
self
.
baud
)
+
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment