From bc145c5c732374d3c53bc7696c35a45fd0723f1e Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Tue, 24 Apr 2018 19:03:56 -0500 Subject: [PATCH] Use end_gcode, not start_code for determining to append bed cool command. --- lib/Slic3r/Print/GCode.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/Print/GCode.pm b/lib/Slic3r/Print/GCode.pm index c98880496..514d9f785 100644 --- a/lib/Slic3r/Print/GCode.pm +++ b/lib/Slic3r/Print/GCode.pm @@ -309,7 +309,7 @@ sub export { $self->_print_off_temperature(0) if $include_end_extruder_temp; # set bed temperature - if ($self->config->has_heatbed && $self->config->start_gcode !~ /M(?:190|140)/i) { + if (($self->config->has_heatbed) && $self->config->end_gcode !~ /M(?:190|140)/i) { printf $fh $gcodegen->writer->set_bed_temperature(0, 0); }