Fix of -> Added lines M73 P100 and M73 Q100 to gcode to signal that print is finished

This commit is contained in:
Enrico Turri 2019-04-08 11:54:58 +02:00
parent 7e32f2df71
commit ea3d30bff1
3 changed files with 21 additions and 0 deletions
src/libslic3r

View file

@ -1034,6 +1034,15 @@ void GCode::_do_export(Print &print, FILE *file)
}
_write(file, m_writer.update_progress(m_layer_count, m_layer_count, true)); // 100%
_write(file, m_writer.postamble());
// adds tags for time estimators
if (print.config().remaining_times.value)
{
_writeln(file, GCodeTimeEstimator::Normal_Last_M73_Output_Placeholder_Tag);
if (m_silent_time_estimator_enabled)
_writeln(file, GCodeTimeEstimator::Silent_Last_M73_Output_Placeholder_Tag);
}
print.throw_if_canceled();
// calculates estimated printing time