From 974379c95558773e6f5ce3f79a5f4c77a28f962a Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Mon, 3 Jun 2013 15:37:32 +0200 Subject: [PATCH] Add M103 after retraction and M101 before restart when Makerbot G-code flavor is selected. #1119 --- lib/Slic3r/GCode.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Slic3r/GCode.pm b/lib/Slic3r/GCode.pm index 409609d48..706ec8d44 100644 --- a/lib/Slic3r/GCode.pm +++ b/lib/Slic3r/GCode.pm @@ -419,6 +419,8 @@ sub retract { # this makes sure we leave sufficient precision in the firmware $gcode .= $self->reset_e; + $gcode .= "M103 ; extruder off\n" if $self->config->gcode_flavor eq 'makerbot'; + return $gcode; } @@ -426,6 +428,7 @@ sub unretract { my $self = shift; my $gcode = ""; + $gcode .= "M101 ; extruder on\n" if $self->config->gcode_flavor eq 'makerbot'; if ($self->lifted) { $self->speed('travel');