Use M109 for Makerbot bed control. #294

This commit is contained in:
Alessandro Ranellucci 2012-03-31 18:24:12 +02:00
parent e3a9adae4d
commit 1355833cbf

View file

@ -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",