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
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -694,7 +694,7 @@ public:
|
|||
int command_get_version(bool with_retry = true);
|
||||
int command_request_push_all();
|
||||
int command_pushing(std::string cmd);
|
||||
int command_clean_print_error(std::string task_id);
|
||||
int command_clean_print_error(std::string task_id, int print_error);
|
||||
|
||||
/* command upgrade */
|
||||
int command_upgrade_confirm();
|
||||
|
|
|
@ -1622,7 +1622,7 @@ void StatusPanel::show_error_message(MachineObject* obj, wxString msg, std::stri
|
|||
|
||||
m_print_error_dlg->Bind(EVT_SECONDARY_CHECK_CONFIRM, [this, obj](wxCommandEvent& e) {
|
||||
if (obj) {
|
||||
obj->command_clean_print_error(obj->subtask_id_);
|
||||
obj->command_clean_print_error(obj->subtask_id_, obj->print_error);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue