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
d0a0ffbd
Commit
d0a0ffbd
authored
May 15, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix and cleanup used filament length measurement
parent
1dcf7be5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
gcoder.py
gcoder.py
+7
-7
No files found.
gcoder.py
View file @
d0a0ffbd
...
...
@@ -303,17 +303,17 @@ class GCode(object):
cur_e
=
0
for
line
in
self
.
lines
:
if
line
.
e
!=
None
:
continue
if
line
.
command
()
==
"G92"
:
if
line
.
e
!=
None
:
total_e
+=
cur_e
cur_e
=
line
.
e
elif
line
.
is_move
()
and
line
.
e
:
cur_e
=
line
.
e
elif
line
.
is_move
():
if
line
.
relative_e
:
cur
_e
+=
line
.
e
total
_e
+=
line
.
e
else
:
total_e
+=
line
.
e
-
cur_e
cur_e
=
line
.
e
return
total_e
...
...
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