mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 20:03:47 +00:00
FIX: fit proceed action change
Jira: [STUDIO-14689] Change-Id: Ia6a842b5b3bd542c25e67545528b847513d533f1 (cherry picked from commit 4cd33fded68797eb3098cb359ba1708b7f0c8bee)
This commit is contained in:
@@ -2994,19 +2994,20 @@ int MachineObject::parse_json(std::string tunnel, std::string payload, bool key_
|
|||||||
|
|
||||||
if (!key_field_only)
|
if (!key_field_only)
|
||||||
{
|
{
|
||||||
if (is_studio_cmd(sequence_id) && jj.contains("command") && jj.contains("err_code") && jj.contains("result"))
|
if (is_studio_cmd(sequence_id) && jj.contains("command") && jj.contains("err_code"))
|
||||||
{
|
{
|
||||||
if (jj["err_code"].is_number()) { add_command_error_code_dlg(jj["err_code"].get<int>());}
|
if (jj["err_code"].is_number())
|
||||||
}
|
{
|
||||||
/* proceed action*/
|
json action_json;
|
||||||
else if (is_studio_cmd(sequence_id) && jj.contains("command") && jj.contains("err_code") && jj.contains("err_index")) {
|
if (jj.contains("err_index")) {
|
||||||
json action_json;
|
/* proceed action*/
|
||||||
action_json["command"] = jj["command"];
|
action_json["command"] = jj["command"];
|
||||||
action_json["err_code"] = jj["err_code"];
|
action_json["err_code"] = jj["err_code"];
|
||||||
action_json["err_index"] = jj["err_index"];
|
action_json["err_index"] = jj["err_index"];
|
||||||
action_json["err_ignored"] = jj.contains("err_ignored") ? jj["err_ignored"] : json::array();
|
action_json["err_ignored"] = jj.contains("err_ignored") ? jj["err_ignored"] : json::array();
|
||||||
|
}
|
||||||
add_command_error_code_dlg(jj["err_code"].get<int>(), action_json);
|
add_command_error_code_dlg(jj["err_code"].get<int>(), action_json);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user