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
06954dd2
Commit
06954dd2
authored
Jun 04, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup
parent
80e313dc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
printcore.py
printcore.py
+4
-7
pronsole.py
pronsole.py
+1
-1
No files found.
printcore.py
View file @
06954dd2
...
...
@@ -314,7 +314,6 @@ class printcore():
self
.
printing
=
False
# try joining the print thread: enclose it in try/except because we might be calling it from the thread itself
try
:
self
.
print_thread
.
join
()
except
:
...
...
@@ -329,8 +328,6 @@ class printcore():
self
.
pauseE
=
self
.
analyzer
.
e
-
self
.
analyzer
.
eOffset
;
self
.
pauseF
=
self
.
analyzer
.
f
;
self
.
pauseRelative
=
self
.
analyzer
.
relative
;
def
resume
(
self
):
"""Resumes a paused print.
...
...
@@ -451,10 +448,10 @@ class printcore():
if
self
.
layerchangecb
and
self
.
queueindex
>
0
:
(
prev_layer
,
prev_line
)
=
self
.
mainqueue
.
idxs
(
self
.
queueindex
-
1
)
if
prev_layer
!=
layer
:
self
.
layerchangecb
(
layer
)
try
:
self
.
layerchangecb
(
layer
)
except
:
traceback
.
print_exc
()
tline
=
gline
.
raw
#check for host command
if
tline
.
lstrip
()
.
startswith
(
";@"
):
if
tline
.
lstrip
()
.
startswith
(
";@"
):
# check for host command
self
.
processHostCommand
(
tline
)
self
.
queueindex
+=
1
return
...
...
@@ -465,7 +462,7 @@ class printcore():
self
.
lineno
+=
1
if
self
.
printsendcb
:
try
:
self
.
printsendcb
(
gline
)
except
:
pass
except
:
traceback
.
print_exc
()
else
:
self
.
clear
=
True
self
.
queueindex
+=
1
...
...
pronsole.py
View file @
06954dd2
...
...
@@ -1161,7 +1161,7 @@ class pronsole(cmd.Cmd):
self
.
log
(
"Printer is not online. Unable to extrude."
)
return
if
self
.
p
.
printing
:
self
.
log
(
"Printer is currently printing. Please pause the print before you issue manual commands."
)
self
.
log
(
_
(
"Printer is currently printing. Please pause the print before you issue manual commands."
)
)
return
ls
=
l
.
split
()
if
len
(
ls
):
...
...
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