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
9167dfb8
Commit
9167dfb8
authored
Mar 01, 2012
by
kliment
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #184 from FrozenFire/experimental
Made lines starting with $ pass through
parents
abe7d684
c2baae7b
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 @
9167dfb8
...
...
@@ -274,7 +274,7 @@ class pronsole(cmd.Cmd):
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
[
"z_feedrate"
]
=
_
(
"Feedrate for Control Panel Moves in Z (default: 200mm/min)"
)
self
.
commandprefixes
=
'MGT$'
def
set_temp_preset
(
self
,
key
,
value
):
if
not
key
.
startswith
(
"bed"
):
...
...
@@ -870,14 +870,14 @@ class pronsole(cmd.Cmd):
print
"! os.listdir('.')"
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
):
print
"SENDING:"
+
l
self
.
p
.
send_now
(
l
)
else
:
print
"Printer is not online."
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
):
print
"SENDING:"
+
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