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
c8921578
Commit
c8921578
authored
Jun 27, 2013
by
D1plo1d
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing do_bedtemp so that it throws the correct errors.
parent
76cd27bc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
pronsole.py
pronsole.py
+8
-8
No files found.
pronsole.py
View file @
c8921578
...
...
@@ -1126,16 +1126,16 @@ class pronsole(cmd.Cmd):
for
i
in
self
.
bedtemps
.
keys
():
l
=
l
.
replace
(
i
,
self
.
bedtemps
[
i
])
f
=
float
(
l
)
except
:
self
.
logError
(
_
(
"You must enter a temperature."
))
if
f
>=
0
:
if
self
.
p
.
online
:
self
.
p
.
send_now
(
"M140 S"
+
l
)
self
.
log
Error
(
_
(
"Setting bed temperature to
%
s degrees Celsius."
)
%
f
)
self
.
log
(
_
(
"Setting bed temperature to
%
s degrees Celsius."
)
%
f
)
else
:
self
.
logError
(
_
(
"Printer is not online."
))
else
:
self
.
logError
(
_
(
"You cannot set negative temperatures. To turn the bed off entirely, set its temperature to 0."
))
except
:
self
.
logError
(
_
(
"You must enter a temperature."
))
def
help_bedtemp
(
self
):
self
.
log
(
_
(
"Sets the bed temperature to the value entered."
))
...
...
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