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
93d258f6
Commit
93d258f6
authored
Jun 04, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Whiespace cleanup + correctly decrease wait time in send and send_now
parent
61ba81bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
printcore.py
printcore.py
+4
-4
No files found.
printcore.py
View file @
93d258f6
...
...
@@ -242,12 +242,12 @@ class printcore():
if
line
.
startswith
(
tuple
(
self
.
greetings
))
or
line
.
startswith
(
'ok'
):
self
.
clear
=
True
if
line
.
startswith
(
'ok'
)
and
"T:"
in
line
and
self
.
tempcb
:
#callback for temp, status, whatever
#callback for temp, status, whatever
try
:
self
.
tempcb
(
line
)
except
:
pass
elif
line
.
startswith
(
'Error'
):
if
self
.
errorcb
:
#callback for errors
#callback for errors
try
:
self
.
errorcb
(
line
)
except
:
pass
# Teststrings for resend parsing # Firmware exp. result
...
...
@@ -373,7 +373,7 @@ class printcore():
self
.
lineno
+=
1
while
wait
>
0
and
self
.
printer
and
self
.
printing
and
not
self
.
clear
:
time
.
sleep
(
0.001
)
wait
-=
1
wait
-=
0.00
1
else
:
print
"Not connected to printer."
...
...
@@ -393,7 +393,7 @@ class printcore():
self
.
_send
(
command
)
while
(
wait
>
0
)
and
self
.
printer
and
self
.
printing
and
not
self
.
clear
:
time
.
sleep
(
0.001
)
wait
-=
1
wait
-=
0.00
1
else
:
print
"Not connected to printer."
...
...
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