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
3b7a21d7
Commit
3b7a21d7
authored
Nov 03, 2014
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP #575: actually get !! and // to work in pronterface
parent
07af3e4d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
13 deletions
+12
-13
pronsole.py
printrun/pronsole.py
+2
-2
pronterface.py
printrun/pronterface.py
+10
-11
No files found.
printrun/pronsole.py
View file @
3b7a21d7
...
@@ -1244,12 +1244,12 @@ class pronsole(cmd.Cmd):
...
@@ -1244,12 +1244,12 @@ class pronsole(cmd.Cmd):
def
recvcb
(
self
,
l
):
def
recvcb
(
self
,
l
):
l
=
l
.
rstrip
()
l
=
l
.
rstrip
()
for
listener
in
self
.
recvlisteners
:
listener
(
l
)
if
not
self
.
recvcb_actions
(
l
):
if
not
self
.
recvcb_actions
(
l
):
report_type
=
self
.
recvcb_report
(
l
)
report_type
=
self
.
recvcb_report
(
l
)
if
report_type
&
REPORT_TEMP
:
if
report_type
&
REPORT_TEMP
:
self
.
status
.
update_tempreading
(
l
)
self
.
status
.
update_tempreading
(
l
)
for
listener
in
self
.
recvlisteners
:
listener
(
l
)
if
l
!=
"ok"
and
not
self
.
sdlisting
\
if
l
!=
"ok"
and
not
self
.
sdlisting
\
and
not
self
.
monitoring
and
(
report_type
==
REPORT_NONE
or
report_type
&
REPORT_MANUAL
):
and
not
self
.
monitoring
and
(
report_type
==
REPORT_NONE
or
report_type
&
REPORT_MANUAL
):
if
l
[:
5
]
==
"echo:"
:
if
l
[:
5
]
==
"echo:"
:
...
...
printrun/pronterface.py
View file @
3b7a21d7
...
@@ -1700,17 +1700,16 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
...
@@ -1700,17 +1700,16 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
def
recvcb
(
self
,
l
):
def
recvcb
(
self
,
l
):
l
=
l
.
rstrip
()
l
=
l
.
rstrip
()
if
l
.
startswith
(
"!!"
):
if
not
self
.
recvcb_actions
(
l
):
return
report_type
=
self
.
recvcb_report
(
l
)
report_type
=
self
.
recvcb_report
(
l
)
isreport
=
report_type
!=
REPORT_NONE
isreport
=
report_type
!=
REPORT_NONE
if
report_type
&
REPORT_POS
:
if
report_type
&
REPORT_POS
:
self
.
update_pos
()
self
.
update_pos
()
elif
report_type
&
REPORT_TEMP
:
elif
report_type
&
REPORT_TEMP
:
wx
.
CallAfter
(
self
.
tempdisp
.
SetLabel
,
self
.
tempreadings
.
strip
()
.
replace
(
"ok "
,
""
))
wx
.
CallAfter
(
self
.
tempdisp
.
SetLabel
,
self
.
tempreadings
.
strip
()
.
replace
(
"ok "
,
""
))
self
.
update_tempdisplay
()
self
.
update_tempdisplay
()
if
not
self
.
p
.
loud
and
(
l
not
in
[
"ok"
,
"wait"
]
and
not
isreport
):
if
not
self
.
p
.
loud
and
(
l
not
in
[
"ok"
,
"wait"
]
and
not
isreport
):
wx
.
CallAfter
(
self
.
addtexttolog
,
l
+
"
\n
"
)
wx
.
CallAfter
(
self
.
addtexttolog
,
l
+
"
\n
"
)
for
listener
in
self
.
recvlisteners
:
for
listener
in
self
.
recvlisteners
:
listener
(
l
)
listener
(
l
)
...
...
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