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
c527601f
Commit
c527601f
authored
Jan 19, 2013
by
kliment
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #321 from colah/clean-firmware-echo
Clean up echoed firmware lines, connect info.
parents
c02e5865
14602469
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
pronsole.py
pronsole.py
+4
-2
No files found.
pronsole.py
View file @
c527601f
...
@@ -337,7 +337,7 @@ class pronsole(cmd.Cmd):
...
@@ -337,7 +337,7 @@ class pronsole(cmd.Cmd):
return
baselist
+
glob
.
glob
(
'/dev/ttyUSB*'
)
+
glob
.
glob
(
'/dev/ttyACM*'
)
+
glob
.
glob
(
"/dev/tty.*"
)
+
glob
.
glob
(
"/dev/cu.*"
)
+
glob
.
glob
(
"/dev/rfcomm*"
)
return
baselist
+
glob
.
glob
(
'/dev/ttyUSB*'
)
+
glob
.
glob
(
'/dev/ttyACM*'
)
+
glob
.
glob
(
"/dev/tty.*"
)
+
glob
.
glob
(
"/dev/cu.*"
)
+
glob
.
glob
(
"/dev/rfcomm*"
)
def
online
(
self
):
def
online
(
self
):
print
"Printer is now online"
print
"
\r
Printer is now online"
sys
.
stdout
.
write
(
self
.
promptf
())
sys
.
stdout
.
write
(
self
.
promptf
())
sys
.
stdout
.
flush
()
sys
.
stdout
.
flush
()
...
@@ -899,7 +899,9 @@ class pronsole(cmd.Cmd):
...
@@ -899,7 +899,9 @@ class pronsole(cmd.Cmd):
self
.
status
.
update_tempreading
(
l
)
self
.
status
.
update_tempreading
(
l
)
tstring
=
l
.
rstrip
()
tstring
=
l
.
rstrip
()
if
(
tstring
!=
"ok"
and
not
tstring
.
startswith
(
"ok T"
)
and
not
tstring
.
startswith
(
"T:"
)
and
not
self
.
listing
and
not
self
.
monitoring
):
if
(
tstring
!=
"ok"
and
not
tstring
.
startswith
(
"ok T"
)
and
not
tstring
.
startswith
(
"T:"
)
and
not
self
.
listing
and
not
self
.
monitoring
):
print
tstring
if
tstring
[:
5
]
==
"echo:"
:
tstring
=
tstring
[
5
:]
.
lstrip
()
print
"
\r
"
+
tstring
.
ljust
(
15
)
sys
.
stdout
.
write
(
self
.
promptf
())
sys
.
stdout
.
write
(
self
.
promptf
())
sys
.
stdout
.
flush
()
sys
.
stdout
.
flush
()
for
i
in
self
.
recvlisteners
:
for
i
in
self
.
recvlisteners
:
...
...
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