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
30d399db
Commit
30d399db
authored
Mar 20, 2012
by
Chillance
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Listening to M104, M109 and M140 commands from gcode to update the UI appropriately.
parent
fa6a3cd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
pronterface.py
pronterface.py
+24
-0
No files found.
pronterface.py
View file @
30d399db
...
...
@@ -199,6 +199,30 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
pass
#threading.Thread(target=self.gviz.addgcode,args=(line,1)).start()
#self.gwindow.p.addgcode(line,hilight=1)
if
(
"M104"
in
line
or
"M109"
in
line
):
if
(
"S"
in
line
):
try
:
temp
=
float
(
line
.
split
(
"S"
)[
1
]
.
split
(
"*"
)[
0
])
self
.
hottgauge
.
SetTarget
(
temp
)
self
.
graph
.
SetExtruder1TargetTemperature
(
temp
)
except
:
pass
try
:
self
.
sentlines
.
put_nowait
(
line
)
except
:
pass
if
(
"M140"
in
line
):
if
(
"S"
in
line
):
try
:
temp
=
float
(
line
.
split
(
"S"
)[
1
]
.
split
(
"*"
)[
0
])
self
.
bedtgauge
.
SetTarget
(
temp
)
self
.
graph
.
SetBedTargetTemperature
(
temp
)
except
:
pass
try
:
self
.
sentlines
.
put_nowait
(
line
)
except
:
pass
def
do_extrude
(
self
,
l
=
""
):
try
:
...
...
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