Fix strange M73 behaviour, where M73 is still present, even if disabled (#8388)

Fix strange M73 behaviour, where M73 is still present, even if disabled or reporting wrong progress
fix #8369
This commit is contained in:
Schildkroet 2025-02-16 08:44:37 +01:00 committed by GitHub
parent 674c8d03f7
commit 740f115790
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5044,14 +5044,14 @@ void GCodeProcessor::run_post_process()
if (GCodeReader::GCodeLine::cmd_is(gcode_line, "G0") || GCodeReader::GCodeLine::cmd_is(gcode_line, "G1")) {
export_lines.append_line(gcode_line);
// add lines M73 where needed
process_line_G1(g1_lines_counter++);
//process_line_G1(g1_lines_counter++);
gcode_line.clear();
}
else if (GCodeReader::GCodeLine::cmd_is(gcode_line, "G2") || GCodeReader::GCodeLine::cmd_is(gcode_line, "G3")) {
export_lines.append_line(gcode_line);
// add lines M73 where needed
process_line_G1(g1_lines_counter + internal_g1_lines_counter);
g1_lines_counter += (1 + internal_g1_lines_counter);
//process_line_G1(g1_lines_counter + internal_g1_lines_counter);
//g1_lines_counter += (1 + internal_g1_lines_counter);
gcode_line.clear();
}
else if (GCodeReader::GCodeLine::cmd_is(gcode_line, "G28")) {