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
f4365c46
Commit
f4365c46
authored
Nov 02, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only add checksums and line numbers for serial connections
parent
b2f26308
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
printcore.py
printrun/printcore.py
+2
-1
No files found.
printrun/printcore.py
View file @
f4365c46
...
...
@@ -552,7 +552,8 @@ class printcore():
self
.
_send
(
"M110"
,
-
1
,
True
)
def
_send
(
self
,
command
,
lineno
=
0
,
calcchecksum
=
False
):
if
calcchecksum
:
# Only add checksums if over serial (tcp does the flow control itself)
if
calcchecksum
and
not
self
.
printer_tcp
:
prefix
=
"N"
+
str
(
lineno
)
+
" "
+
command
command
=
prefix
+
"*"
+
str
(
self
.
_checksum
(
prefix
))
if
"M110"
not
in
command
:
...
...
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