From 6c12bd32adf2c57cba9f0c3b2f7b5f24bbc60100 Mon Sep 17 00:00:00 2001 From: Robert Giseburt Date: Wed, 6 Feb 2013 22:32:37 -0600 Subject: [PATCH] Fix for Replicator 1 not finishing builds. If the progress reaches 100% before last layer, the firmware erroneously stops reading the file. --- lib/Slic3r/GCode.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/GCode.pm b/lib/Slic3r/GCode.pm index 3633c3c5..4eaf9846 100644 --- a/lib/Slic3r/GCode.pm +++ b/lib/Slic3r/GCode.pm @@ -86,7 +86,7 @@ sub change_layer { my $gcode = ""; if ($Slic3r::Config->gcode_flavor =~ /^(?:makerbot|sailfish)$/) { $gcode .= sprintf "M73 P%s%s\n", - int(100 * ($layer->id / ($self->layer_count - 1))), + int(99 * ($layer->id / ($self->layer_count - 1))), ($Slic3r::Config->gcode_comments ? ' ; update progress' : ''); } return $gcode;