mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00: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:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user