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
b6c01059
Commit
b6c01059
authored
Oct 13, 2014
by
kliment
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #582 from fjriosp/master
FIX: Unable to connect on Debian testing
parents
87cb9419
676583d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
printcore.py
printrun/printcore.py
+6
-2
No files found.
printrun/printcore.py
View file @
b6c01059
...
...
@@ -17,7 +17,7 @@
__version__
=
"2014.08.01"
from
serial
import
Serial
,
SerialException
from
serial
import
Serial
,
SerialException
,
PARITY_ODD
,
PARITY_NONE
from
select
import
error
as
SelectError
from
threading
import
Thread
,
Lock
from
Queue
import
Queue
,
Empty
as
QueueEmpty
...
...
@@ -189,7 +189,11 @@ class printcore():
try
:
self
.
printer
=
Serial
(
port
=
self
.
port
,
baudrate
=
self
.
baud
,
timeout
=
0.25
)
timeout
=
0.25
,
parity
=
PARITY_ODD
)
self
.
printer
.
close
()
self
.
printer
.
parity
=
PARITY_NONE
self
.
printer
.
open
()
except
SerialException
as
e
:
self
.
logError
(
_
(
"Could not connect to
%
s at baudrate
%
s:"
)
%
(
self
.
port
,
self
.
baud
)
+
"
\n
"
+
_
(
"Serial error:
%
s"
)
%
e
)
...
...
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