Fixed an excessive retract / derectract length
with the new retract_before_wipe value set to nonzero.
This commit is contained in:
parent
ff9d565ba7
commit
c9c4105289
1 changed files with 3 additions and 1 deletions
|
@ -95,7 +95,9 @@ Wipe::wipe(GCode &gcodegen, bool toolchange)
|
|||
double length = toolchange
|
||||
? gcodegen.writer().extruder()->retract_length_toolchange()
|
||||
: gcodegen.writer().extruder()->retract_length();
|
||||
|
||||
// Shorten the retraction length by the amount already retracted before wipe.
|
||||
length *= (1. - gcodegen.writer().extruder()->retract_before_wipe());
|
||||
|
||||
if (length > 0) {
|
||||
/* Calculate how long we need to travel in order to consume the required
|
||||
amount of retraction. In other words, how far do we move in XY at wipe_speed
|
||||
|
|
Loading…
Add table
Reference in a new issue