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
d704bba3
Commit
d704bba3
authored
Nov 20, 2011
by
kliment
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #100 from ErikZalm/master
Small change to enable T0 and T1 commands.
parents
82aa15be
21d81f76
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
pronsole.py
pronsole.py
+2
-2
No files found.
pronsole.py
View file @
d704bba3
...
...
@@ -809,14 +809,14 @@ class pronsole(cmd.Cmd):
print
"! os.listdir('.')"
def
default
(
self
,
l
):
if
(
l
[
0
]
==
'M'
or
l
[
0
]
==
"G"
):
if
(
l
[
0
]
==
'M'
or
l
[
0
]
==
"G"
or
l
[
0
]
==
'T'
):
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"
):
if
(
l
[
0
]
==
'm'
or
l
[
0
]
==
"g"
or
l
[
0
]
==
't'
):
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