Work on applying the probed heightmap.
This commit is contained in:
+5
-5
@@ -121,7 +121,7 @@ void grbl::grbl_parser::parse(std::string line, int line_number) {
|
||||
throw parse_exception("M code can only have positive integer parameters", line_number);
|
||||
}
|
||||
|
||||
commands.push_back(std::make_shared<mcode_cmd>(param, line_number));
|
||||
commands.push_back(new mcode_cmd{param, line_number});
|
||||
it = words.erase(it);
|
||||
continue;
|
||||
}
|
||||
@@ -132,7 +132,7 @@ void grbl::grbl_parser::parse(std::string line, int line_number) {
|
||||
warnings.push_back("spindle speed must be positive. (line " + std::to_string(line_number) + ")");
|
||||
}
|
||||
|
||||
commands.push_back(std::make_shared<spindle_cmd>(std::abs(param), line_number));
|
||||
commands.push_back(new spindle_cmd{std::abs(param), line_number});
|
||||
it = words.erase(it);
|
||||
continue;
|
||||
}
|
||||
@@ -203,7 +203,7 @@ void grbl::grbl_parser::parse(std::string line, int line_number) {
|
||||
warnings.push_back("dwell time must be positive. (line " + std::to_string(line_number) + ")");
|
||||
}
|
||||
|
||||
commands.push_back(std::make_shared<dwell_cmd>(std::abs((*next).parameter), line_number));
|
||||
commands.push_back(new dwell_cmd{std::abs((*next).parameter), line_number});
|
||||
it = words.erase(it);
|
||||
it = words.erase(it);
|
||||
continue;
|
||||
@@ -341,7 +341,7 @@ void grbl::grbl_parser::parse(std::string line, int line_number) {
|
||||
|
||||
std::memcpy(l->position_valid, state.position_valid, sizeof(bool) * 3);
|
||||
|
||||
commands.push_back(std::shared_ptr<line_motion_cmd>(l));
|
||||
commands.push_back(l);
|
||||
state.position = end_pos;
|
||||
return;
|
||||
}
|
||||
@@ -512,7 +512,7 @@ void grbl::grbl_parser::parse(std::string line, int line_number) {
|
||||
a->line_number = line_number;
|
||||
a->plane = state.plane;
|
||||
|
||||
commands.push_back(std::shared_ptr<arc_motion_cmd>(a));
|
||||
commands.push_back(a);
|
||||
state.position = end_pos;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user