mirror of https://github.com/vitalif/Slic3r
Fix for Replicator 1 not finishing builds.
If the progress reaches 100% before last layer, the firmware erroneously stops reading the file.internal-support
parent
26a3cd5542
commit
6c12bd32ad
|
@ -86,7 +86,7 @@ sub change_layer {
|
||||||
my $gcode = "";
|
my $gcode = "";
|
||||||
if ($Slic3r::Config->gcode_flavor =~ /^(?:makerbot|sailfish)$/) {
|
if ($Slic3r::Config->gcode_flavor =~ /^(?:makerbot|sailfish)$/) {
|
||||||
$gcode .= sprintf "M73 P%s%s\n",
|
$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' : '');
|
($Slic3r::Config->gcode_comments ? ' ; update progress' : '');
|
||||||
}
|
}
|
||||||
return $gcode;
|
return $gcode;
|
||||||
|
|
Loading…
Reference in New Issue