Follow-up of 6a46b71dc1 - Fix build on non-Windows platforms

This commit is contained in:
enricoturri1966 2021-03-03 15:17:45 +01:00
parent 5f5de1c812
commit d99895805c

View File

@ -2168,10 +2168,10 @@ void GCodeProcessor::process_G28(const GCodeReader::GCodeLine& line)
if (!found)
new_line_raw += " X0 Y0 Z0";
GCodeReader::GCodeLine new_line;
GCodeReader::GCodeLine new_gline;
GCodeReader reader;
reader.parse_line(new_line_raw.c_str(), new_line, [](GCodeReader&, const GCodeReader::GCodeLine&) {});
process_G1(new_line);
reader.parse_line(new_line_raw, [&](GCodeReader& reader, const GCodeReader::GCodeLine& gline) { new_gline = gline; });
process_G1(new_gline);
}
void GCodeProcessor::process_G90(const GCodeReader::GCodeLine& line)