Fixed method GCodeLine::extract_cmd()

This commit is contained in:
enricoturri1966 2023-02-17 09:29:35 +01:00 committed by Lukas Matena
parent 57e1f3d4db
commit 64b3e0d6a9

View File

@ -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