Fixed method GCodeLine::extract_cmd()
This commit is contained in:
parent
57e1f3d4db
commit
64b3e0d6a9
@ -79,7 +79,8 @@ public:
|
||||
static std::string extract_cmd(const std::string& gcode_line) {
|
||||
GCodeLine temp;
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user