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
d2eb9d3e
Commit
d2eb9d3e
authored
Jul 18, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rework off() to work with Marlin
parent
d3dd5ccf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
pronsole.py
pronsole.py
+10
-5
No files found.
pronsole.py
View file @
d2eb9d3e
...
@@ -1426,11 +1426,16 @@ class pronsole(cmd.Cmd):
...
@@ -1426,11 +1426,16 @@ class pronsole(cmd.Cmd):
def
off
(
self
,
ignore
=
None
):
def
off
(
self
,
ignore
=
None
):
if
self
.
p
.
online
:
if
self
.
p
.
online
:
if
self
.
p
.
printing
:
self
.
pause
(
None
)
if
self
.
p
.
printing
:
self
.
pause
(
None
)
self
.
onecmd
(
"M84; motors off"
)
self
.
log
(
_
(
"; Motors off"
))
self
.
onecmd
(
"M104 S0; extruder off"
)
self
.
onecmd
(
"M84"
)
self
.
onecmd
(
"M140 S0; heatbed off"
)
self
.
log
(
_
(
"; Extruder off"
))
self
.
onecmd
(
"M107; fan off"
)
self
.
onecmd
(
"M104 S0"
)
self
.
onecmd
(
"M81; power supply off"
)
self
.
log
(
_
(
"; Heatbed off"
))
self
.
onecmd
(
"M140 S0"
)
self
.
log
(
_
(
"; Fan off"
))
self
.
onecmd
(
"M107"
)
self
.
log
(
_
(
"; Power supply off"
))
self
.
onecmd
(
"M81"
)
else
:
else
:
self
.
logError
(
_
(
"Printer is not online. Unable to turn it off."
))
self
.
logError
(
_
(
"Printer is not online. Unable to turn it off."
))
...
...
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