Fix for Replicator 1 not finishing builds.

If the progress reaches 100% before last layer, the firmware erroneously stops reading the file.
internal-support
Robert Giseburt 2013-02-06 22:32:37 -06:00
parent 26a3cd5542
commit 6c12bd32ad
1 changed files with 1 additions and 1 deletions

View File

@ -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;