diff --git a/lib/Slic3r/Print.pm b/lib/Slic3r/Print.pm index 23623e5e1..e3a2100cd 100644 --- a/lib/Slic3r/Print.pm +++ b/lib/Slic3r/Print.pm @@ -587,7 +587,8 @@ sub export_gcode { print $fh "\n"; # write start commands to file - printf $fh "M190 %s%d ; set bed temperature\n", + printf $fh "M%s %s%d ; set bed temperature\n", + ($Slic3r::gcode_flavor eq 'makerbot' ? '109' : '190'), ($Slic3r::gcode_flavor eq 'mach3' ? 'P' : 'S'), $Slic3r::first_layer_bed_temperature if $Slic3r::first_layer_bed_temperature && $Slic3r::start_gcode !~ /M190/i; printf $fh "M104 %s%d ; set temperature\n",