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
052c76d9
Commit
052c76d9
authored
Jul 18, 2013
by
D1plo1d
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing the prontserve sendcb so that it catches all target temperature events.
parent
007a5621
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
prontserve.py
prontserve.py
+5
-1
No files found.
prontserve.py
View file @
052c76d9
...
...
@@ -703,7 +703,7 @@ class Prontserve(pronsole.pronsole, EventEmitter):
#print l
if
self
.
waiting_to_reach_temp
and
(
"ok"
in
l
):
self
.
waiting_to_reach_temp
=
False
if
"T:"
in
l
:
if
(
"T:"
in
l
)
:
self
.
_receive_sensor_update
(
l
)
if
l
!=
"ok"
and
not
l
.
startswith
(
"ok T"
)
and
not
l
.
startswith
(
"T:"
):
self
.
_receive_printer_error
(
l
)
...
...
@@ -713,6 +713,10 @@ class Prontserve(pronsole.pronsole, EventEmitter):
if
(
"M109"
in
l
)
or
(
"M104"
in
l
):
temp
=
float
(
re
.
search
(
'S([0-9]+)'
,
l
)
.
group
(
1
))
self
.
_set_target_temp
(
"e0"
,
temp
)
if
(
"M140"
in
l
)
or
(
"M190"
in
l
):
temp
=
float
(
re
.
search
(
'S([0-9]+)'
,
l
)
.
group
(
1
))
self
.
_set_target_temp
(
"b"
,
temp
)
if
(
"M109"
in
l
)
or
(
"M190"
in
l
)
or
(
"M116"
in
l
):
self
.
waiting_to_reach_temp
=
True
def
_set_target_temp
(
self
,
key
,
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