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
c2baae7b
Commit
c2baae7b
authored
Mar 01, 2012
by
Nathan Zadoks
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lines starting with $ are now passed through too.
parent
501254a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
pronsole.py
pronsole.py
+3
-3
No files found.
pronsole.py
View file @
c2baae7b
...
@@ -274,7 +274,7 @@ class pronsole(cmd.Cmd):
...
@@ -274,7 +274,7 @@ class pronsole(cmd.Cmd):
self
.
helpdict
[
"temperature_pla"
]
=
_
(
"Extruder temp for PLA (default: 185 deg C)"
)
self
.
helpdict
[
"temperature_pla"
]
=
_
(
"Extruder temp for PLA (default: 185 deg C)"
)
self
.
helpdict
[
"xy_feedrate"
]
=
_
(
"Feedrate for Control Panel Moves in X and Y (default: 3000mm/min)"
)
self
.
helpdict
[
"xy_feedrate"
]
=
_
(
"Feedrate for Control Panel Moves in X and Y (default: 3000mm/min)"
)
self
.
helpdict
[
"z_feedrate"
]
=
_
(
"Feedrate for Control Panel Moves in Z (default: 200mm/min)"
)
self
.
helpdict
[
"z_feedrate"
]
=
_
(
"Feedrate for Control Panel Moves in Z (default: 200mm/min)"
)
self
.
commandprefixes
=
'MGT$'
def
set_temp_preset
(
self
,
key
,
value
):
def
set_temp_preset
(
self
,
key
,
value
):
if
not
key
.
startswith
(
"bed"
):
if
not
key
.
startswith
(
"bed"
):
...
@@ -870,14 +870,14 @@ class pronsole(cmd.Cmd):
...
@@ -870,14 +870,14 @@ class pronsole(cmd.Cmd):
print
"! os.listdir('.')"
print
"! os.listdir('.')"
def
default
(
self
,
l
):
def
default
(
self
,
l
):
if
(
l
[
0
]
==
'M'
or
l
[
0
]
==
"G"
or
l
[
0
]
==
'T'
):
if
(
l
[
0
]
in
self
.
commandprefixes
.
upper
()
):
if
(
self
.
p
and
self
.
p
.
online
):
if
(
self
.
p
and
self
.
p
.
online
):
print
"SENDING:"
+
l
print
"SENDING:"
+
l
self
.
p
.
send_now
(
l
)
self
.
p
.
send_now
(
l
)
else
:
else
:
print
"Printer is not online."
print
"Printer is not online."
return
return
if
(
l
[
0
]
==
'm'
or
l
[
0
]
==
"g"
or
l
[
0
]
==
't'
):
elif
(
l
[
0
]
in
self
.
commandprefixes
.
lower
()
):
if
(
self
.
p
and
self
.
p
.
online
):
if
(
self
.
p
and
self
.
p
.
online
):
print
"SENDING:"
+
l
.
upper
()
print
"SENDING:"
+
l
.
upper
()
self
.
p
.
send_now
(
l
.
upper
())
self
.
p
.
send_now
(
l
.
upper
())
...
...
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