ENH:handling cases without msgs

jira:[STUDIO-5401 STUDIO-5399]

Change-Id: Iae651d5a19a45b0138a6aa621326a8b4a9649824
This commit is contained in:
tao wang 2023-11-28 14:25:22 +08:00 committed by Lane.Wei
parent 83407370eb
commit a1fb7625ed
1 changed files with 5 additions and 0 deletions

View File

@ -2729,6 +2729,11 @@ int MachineObject::parse_json(std::string payload)
BOOST_LOG_TRIVIAL(warning) << "unsupported msg_type=" << j_pre["print"]["msg"].get<std::string>();
}
}
else {
if (!printer_type.empty() && connection_type() == "lan")
print_json.load_compatible_settings(printer_type, "");
print_json.diff2all_base_reset(j_pre);
}
}
}
}