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
fe976462
Commit
fe976462
authored
Jun 01, 2011
by
kliment
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes online-ness detection on non-Sprinter firmwares.
parent
39cbe210
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
12 deletions
+7
-12
printcore.py
printcore.py
+7
-12
No files found.
printcore.py
View file @
fe976462
...
...
@@ -75,22 +75,17 @@ class printcore():
if
self
.
loud
:
print
"RECV: "
,
line
if
(
line
.
startswith
(
'start'
)):
if
(
line
.
startswith
(
'start'
)
or
line
.
startswith
(
'ok'
)
or
"T:"
in
line
):
self
.
clear
=
True
if
not
self
.
online
and
self
.
onlinecb
is
not
None
:
self
.
onlinecb
()
self
.
online
=
True
elif
(
line
.
startswith
(
'ok'
)):
self
.
clear
=
True
if
not
self
.
online
and
self
.
onlinecb
is
not
None
:
self
.
onlinecb
()
self
.
online
=
True
self
.
resendfrom
=-
1
#put temp handling here
if
"T:"
in
line
and
self
.
tempcb
is
not
None
:
self
.
tempcb
(
line
)
#callback for temp, status, whatever
if
(
line
.
startswith
(
'ok'
)):
self
.
resendfrom
=-
1
#put temp handling here
if
"T:"
in
line
and
self
.
tempcb
is
not
None
:
self
.
tempcb
(
line
)
#callback for temp, status, whatever
elif
(
line
.
startswith
(
'Error'
)):
if
self
.
errorcb
is
not
None
:
self
.
errorcb
(
line
)
...
...
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