From 1355833cbfc7621b5bd6796adb9703393e797141 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 31 Mar 2012 18:24:12 +0200 Subject: [PATCH] Use M109 for Makerbot bed control. #294 --- lib/Slic3r/Print.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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",