mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 06:57:36 -06:00
ENH: add print error in cmd clean_print_error
Change-Id: I22328a8be58c9896c40eb5f270e8a08e4469bd7d Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
parent
92255cbede
commit
464af822e1
3 changed files with 4 additions and 3 deletions
|
@ -1459,13 +1459,14 @@ int MachineObject::command_pushing(std::string cmd)
|
|||
return -1;
|
||||
}
|
||||
|
||||
int MachineObject::command_clean_print_error(std::string subtask_id)
|
||||
int MachineObject::command_clean_print_error(std::string subtask_id, int print_error)
|
||||
{
|
||||
BOOST_LOG_TRIVIAL(info) << "command_clean_print_error, id = " << subtask_id;
|
||||
json j;
|
||||
j["print"]["command"] = "clean_print_error";
|
||||
j["print"]["sequence_id"] = std::to_string(MachineObject::m_sequence_id++);
|
||||
j["print"]["subtask_id"] = subtask_id;
|
||||
j["print"]["print_error"] = print_error;
|
||||
|
||||
return this->publish_json(j.dump());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue