using end_program() function in GCode output

This commit is contained in:
Alexander Rössler 2015-02-07 12:37:00 +01:00
parent f2fa8cb63f
commit cc83e9f06d

View File

@ -249,6 +249,7 @@ sub export {
print $fh $gcodegen->writer->set_fan(0);
printf $fh "%s\n", $gcodegen->placeholder_parser->process($self->config->end_gcode);
print $fh $gcodegen->writer->update_progress($gcodegen->layer_count, $gcodegen->layer_count, 1); # 100%
print $fh $gcodegen->writer->end_program();
$self->print->total_used_filament(0);
$self->print->total_extruded_volume(0);