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
69a28f30
Commit
69a28f30
authored
Sep 09, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent flooding of printer serial buffer with M105
parent
f34a8c91
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
pronterface.py
printrun/pronterface.py
+5
-1
No files found.
printrun/pronterface.py
View file @
69a28f30
...
@@ -238,6 +238,7 @@ class PronterWindow(MainWindow, pronsole.pronsole):
...
@@ -238,6 +238,7 @@ class PronterWindow(MainWindow, pronsole.pronsole):
self
.
tempreport
=
""
self
.
tempreport
=
""
self
.
userm114
=
0
self
.
userm114
=
0
self
.
userm105
=
0
self
.
userm105
=
0
self
.
m105_waitcycles
=
0
self
.
monitor
=
0
self
.
monitor
=
0
self
.
fgcode
=
None
self
.
fgcode
=
None
self
.
excluder
=
None
self
.
excluder
=
None
...
@@ -1483,7 +1484,9 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
...
@@ -1483,7 +1484,9 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
if
self
.
monitor
and
self
.
p
.
online
:
if
self
.
monitor
and
self
.
p
.
online
:
if
self
.
sdprinting
:
if
self
.
sdprinting
:
self
.
p
.
send_now
(
"M27"
)
self
.
p
.
send_now
(
"M27"
)
if
self
.
m105_waitcycles
%
10
==
0
:
self
.
p
.
send_now
(
"M105"
)
self
.
p
.
send_now
(
"M105"
)
self
.
m105_waitcycles
+=
1
cur_time
=
time
.
time
()
cur_time
=
time
.
time
()
wait_time
=
0
wait_time
=
0
while
time
.
time
()
<
cur_time
+
self
.
monitor_interval
-
0.25
:
while
time
.
time
()
<
cur_time
+
self
.
monitor_interval
-
0.25
:
...
@@ -1524,6 +1527,7 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
...
@@ -1524,6 +1527,7 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
if
self
.
userm105
>
0
:
if
self
.
userm105
>
0
:
self
.
userm105
-=
1
self
.
userm105
-=
1
else
:
else
:
self
.
m105_waitcycles
=
0
isreport
=
True
isreport
=
True
tstring
=
l
.
rstrip
()
tstring
=
l
.
rstrip
()
if
not
self
.
p
.
loud
and
(
tstring
not
in
[
"ok"
,
"wait"
]
and
not
isreport
):
if
not
self
.
p
.
loud
and
(
tstring
not
in
[
"ok"
,
"wait"
]
and
not
isreport
):
...
...
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