Fix filament measurement for relative extruders
This commit is contained in:
parent
c015a67a70
commit
d667a0ff56
1 changed files with 5 additions and 2 deletions
|
|
@ -159,8 +159,11 @@ class gcode(object):
|
|||
moveType = 'extrude'
|
||||
if e < 0:
|
||||
moveType = 'retract'
|
||||
totalExtrusion += e - currentE
|
||||
currentE = e
|
||||
if posAbsExtruder:
|
||||
totalExtrusion += e - currentE
|
||||
currentE = e
|
||||
else:
|
||||
totalExtrusion += e
|
||||
if totalExtrusion > maxExtrusion:
|
||||
maxExtrusion = totalExtrusion
|
||||
if moveType == 'move' and oldPos.z != pos.z:
|
||||
|
|
|
|||
Loading…
Reference in a new issue