Revert "Fix strange M73 behaviour, where M73 is still present, even if disabled" (#8423)

Revert "Fix strange M73 behaviour, where M73 is still present, even if disabl…"

This reverts commit 740f115790.
This commit is contained in:
SoftFever 2025-02-16 16:23:30 +08:00 committed by GitHub
parent 740f115790
commit ad5fcb704b
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")) {