Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2011-11-19 20:32:37 +0400
committerAlessandro Ranellucci <aar@cpan.org>2011-11-19 20:32:37 +0400
commit4a9fc942cb7bd186d73b7e00c4d677a91b7bcc06 (patch)
tree14ac251030351e3e7a6d88bc5a5c60a3bf577ed3 /lib/Slic3r/Print.pm
parent4540f2377dff51c0d7678b47d06388cbca331063 (diff)
Add a M109 for temperature control
Diffstat (limited to 'lib/Slic3r/Print.pm')
-rw-r--r--lib/Slic3r/Print.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Slic3r/Print.pm b/lib/Slic3r/Print.pm
index a570aa364..3565f5e5e 100644
--- a/lib/Slic3r/Print.pm
+++ b/lib/Slic3r/Print.pm
@@ -405,6 +405,7 @@ sub export_gcode {
# write start commands to file
printf $fh "M104 S%d ; set temperature\n", $Slic3r::temperature unless $Slic3r::temperature;
print $fh "$Slic3r::start_gcode\n";
+ printf $fh "M109 S%d ; wait for temperature to be reached\n", $Slic3r::temperature unless $Slic3r::temperature;
print $fh "G90 ; use absolute coordinates\n";
print $fh "G21 ; set units to millimeters\n";
print $fh "G92 E0 ; reset extrusion distance\n" if !$Slic3r::no_extrusion;