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
dbf8ea3b
Commit
dbf8ea3b
authored
Mar 28, 2014
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove pronterface-related integration in printcore
parent
7f1e4b13
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
printcore.py
printrun/printcore.py
+4
-8
No files found.
printrun/printcore.py
View file @
dbf8ea3b
...
@@ -107,7 +107,6 @@ class printcore():
...
@@ -107,7 +107,6 @@ class printcore():
self
.
connect
(
port
,
baud
)
self
.
connect
(
port
,
baud
)
self
.
xy_feedrate
=
None
self
.
xy_feedrate
=
None
self
.
z_feedrate
=
None
self
.
z_feedrate
=
None
self
.
pronterface
=
None
def
logError
(
self
,
error
):
def
logError
(
self
,
error
):
if
self
.
errorcb
:
if
self
.
errorcb
:
...
@@ -496,13 +495,10 @@ class printcore():
...
@@ -496,13 +495,10 @@ class printcore():
self
.
print_thread
=
None
self
.
print_thread
=
None
self
.
_start_sender
()
self
.
_start_sender
()
#now only "pause" is implemented as host command
def
process_host_command
(
self
,
command
):
def
processHostCommand
(
self
,
command
):
"""only ;@pause command is implemented as a host command in printcore, but hosts are free to reimplement this method"""
command
=
command
.
lstrip
()
command
=
command
.
lstrip
()
if
command
.
startswith
(
";@pause"
):
if
command
.
startswith
(
";@pause"
):
if
self
.
pronterface
is
not
None
:
self
.
pronterface
.
pause
(
None
)
else
:
self
.
pause
()
self
.
pause
()
def
_sendnext
(
self
):
def
_sendnext
(
self
):
...
@@ -546,7 +542,7 @@ class printcore():
...
@@ -546,7 +542,7 @@ class printcore():
return
return
tline
=
gline
.
raw
tline
=
gline
.
raw
if
tline
.
lstrip
()
.
startswith
(
";@"
):
# check for host command
if
tline
.
lstrip
()
.
startswith
(
";@"
):
# check for host command
self
.
process
HostC
ommand
(
tline
)
self
.
process
_host_c
ommand
(
tline
)
self
.
queueindex
+=
1
self
.
queueindex
+=
1
self
.
clear
=
True
self
.
clear
=
True
return
return
...
...
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