Ruler for DoubleSlider: Added estimated print time
This commit is contained in:
committed by
Oleksandra Yushchenko
parent
cb844a4034
commit
feffb66085
@@ -1858,7 +1858,7 @@ void GCode::process_layer(
|
||||
std::string gcode;
|
||||
|
||||
// add tag for processor
|
||||
gcode += "; " + GCodeProcessor::Layer_Change_Tag + "\n";
|
||||
gcode += ";" + GCodeProcessor::Layer_Change_Tag + "\n";
|
||||
// export layer z
|
||||
char buf[64];
|
||||
sprintf(buf, ";Z:%g\n", print_z);
|
||||
|
||||
@@ -393,7 +393,7 @@ void GCodeProcessor::TimeProcessor::post_process(const std::string& filename)
|
||||
auto is_temporary_decoration = [](const std::string& gcode_line) {
|
||||
// remove trailing '\n'
|
||||
std::string line = gcode_line.substr(0, gcode_line.length() - 1);
|
||||
if (line == "; " + Layer_Change_Tag)
|
||||
if (line == ";" + Layer_Change_Tag)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user