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
412aa61f
Commit
412aa61f
authored
Apr 11, 2014
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't try to parse empty strings in update_tempdisplay
parent
1c3bb6d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
pronterface.py
printrun/pronterface.py
+5
-3
No files found.
printrun/pronterface.py
View file @
412aa61f
...
...
@@ -1643,10 +1643,12 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
def
update_tempdisplay
(
self
):
try
:
temps
=
parse_temperature_report
(
self
.
tempreport
)
if
"T0"
in
temps
:
if
"T0"
in
temps
and
temps
[
"T0"
][
0
]
:
hotend_temp
=
float
(
temps
[
"T0"
][
0
])
elif
"T"
in
temps
and
temps
[
"T"
][
0
]:
hotend_temp
=
float
(
temps
[
"T"
][
0
])
else
:
hotend_temp
=
float
(
temps
[
"T"
][
0
])
if
"T"
in
temps
else
None
hotend_temp
=
None
if
hotend_temp
is
not
None
:
if
self
.
display_graph
:
wx
.
CallAfter
(
self
.
graph
.
SetExtruder0Temperature
,
hotend_temp
)
if
self
.
display_gauges
:
wx
.
CallAfter
(
self
.
hottgauge
.
SetValue
,
hotend_temp
)
...
...
@@ -1662,7 +1664,7 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
setpoint
=
temps
[
"T1"
][
1
]
if
setpoint
and
self
.
display_graph
:
wx
.
CallAfter
(
self
.
graph
.
SetExtruder1TargetTemperature
,
float
(
setpoint
))
bed_temp
=
float
(
temps
[
"B"
][
0
])
if
"B"
in
temps
else
None
bed_temp
=
float
(
temps
[
"B"
][
0
])
if
"B"
in
temps
and
temps
[
"B"
][
0
]
else
None
if
bed_temp
is
not
None
:
if
self
.
display_graph
:
wx
.
CallAfter
(
self
.
graph
.
SetBedTemperature
,
bed_temp
)
if
self
.
display_gauges
:
wx
.
CallAfter
(
self
.
bedtgauge
.
SetValue
,
bed_temp
)
...
...
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