After issuing the color change custom G-code, which is most likely

just M600, reset the internal retract counter, so that a retract
will happen after the firmware returns from M600 to the initial position.

Fixes "Blobs on print after manual color change #6362"
This commit is contained in:
Vojtech Bubnik 2021-04-15 16:29:30 +02:00
parent 5b90033b31
commit df559decd9

View File

@ -1646,6 +1646,10 @@ namespace ProcessLayer
else {
gcode += config.color_change_gcode;//ColorChangeCode;
gcode += "\n";
//FIXME Tell G-code writer that M600 filled the extruder, thus the G-code writer shall reset the extruder to unretracted state after
// return from M600. Thus the G-code generated by the following line is ignored.
// see GH issue #6362
gcodegen.writer().unretract();
}
}
else