Disable M104 if temperature is 0

This commit is contained in:
Alessandro Ranellucci committed 2011-11-15 12:00:09 +01:00
1 parent 9e42158582
commit e65349469b
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -443,7 +443,7 @@ sub export_gcode {
or die "Failed to open $file for writing\n";
# write start commands to file
printf $fh "M104 S%d ; set temperature\n", $Slic3r::temperature;
printf $fh "M104 S%d ; set temperature\n", $Slic3r::temperature unless $Slic3r::temperature;
print $fh "$Slic3r::start_gcode\n";
print $fh "G90 ; use absolute coordinates\n";
print $fh "G21 ; set units to millimeters\n";