Fixed method GCodeLine::extract_cmd()
This commit is contained in:
parent
57e1f3d4db
commit
64b3e0d6a9
1 changed files with 2 additions and 1 deletions
|
@ -79,7 +79,8 @@ public:
|
||||||
static std::string extract_cmd(const std::string& gcode_line) {
|
static std::string extract_cmd(const std::string& gcode_line) {
|
||||||
GCodeLine temp;
|
GCodeLine temp;
|
||||||
temp.m_raw = gcode_line;
|
temp.m_raw = gcode_line;
|
||||||
return temp.cmd().data();
|
const std::string_view cmd = temp.cmd();
|
||||||
|
return { cmd.begin(), cmd.end() };
|
||||||
}
|
}
|
||||||
#endif // ENABLE_GCODE_POSTPROCESS_BACKTRACE
|
#endif // ENABLE_GCODE_POSTPROCESS_BACKTRACE
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue