From 79bc2240fb332206288d54865f81bb42f15fbb5f Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sun, 26 Feb 2012 15:09:28 +0100 Subject: [PATCH] Use first layer temperature for M109 too --- lib/Slic3r/Print.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Slic3r/Print.pm b/lib/Slic3r/Print.pm index 72e9cfcc0..1657f5748 100644 --- a/lib/Slic3r/Print.pm +++ b/lib/Slic3r/Print.pm @@ -591,8 +591,8 @@ sub export_gcode { if $Slic3r::first_layer_temperature; print $fh "$Slic3r::start_gcode\n"; printf $fh "M109 %s%d ; wait for temperature to be reached\n", - ($Slic3r::gcode_flavor eq 'mach3' ? 'P' : 'S'), $Slic3r::temperature - if $Slic3r::temperature && $Slic3r::gcode_flavor ne 'makerbot'; + ($Slic3r::gcode_flavor eq 'mach3' ? 'P' : 'S'), $Slic3r::first_layer_temperature + if $Slic3r::first_layer_temperature && $Slic3r::gcode_flavor ne 'makerbot'; print $fh "G90 ; use absolute coordinates\n"; print $fh "G21 ; set units to millimeters\n"; if ($Slic3r::gcode_flavor =~ /^(?:reprap|teacup|makerbot)$/) {