ENH:X1E supports nozzle types

jira:[none]

Change-Id: I056d04cbc08f0b29eeedc6cb0d7261e48c04611d
This commit is contained in:
tao wang 2025-03-31 17:09:48 +08:00 committed by lane.wei
parent 17e0490337
commit 8f94e72c16
1 changed files with 4 additions and 5 deletions

View File

@ -6217,11 +6217,6 @@ void MachineObject::parse_new_info(json print)
bed_temp_target = get_flag_bits(device["bed_temp"].get<int>(), 16, 16); bed_temp_target = get_flag_bits(device["bed_temp"].get<int>(), 16, 16);
} }
if (device.contains("cham_temp")) {
chamber_temp = get_flag_bits(device["cham_temp"].get<int>(), 0, 16);
chamber_temp_target = get_flag_bits(device["cham_temp"].get<int>(), 16, 16);
}
if (device.contains("nozzle")) { if (device.contains("nozzle")) {
json const &nozzle = device["nozzle"]; json const &nozzle = device["nozzle"];
@ -6249,6 +6244,10 @@ void MachineObject::parse_new_info(json print)
nozzle_obj.nozzle_flow = NozzleFlowType::S_FLOW; nozzle_obj.nozzle_flow = NozzleFlowType::S_FLOW;
} else if (type.substr(1, 1) == std::string("H")) { } else if (type.substr(1, 1) == std::string("H")) {
nozzle_obj.nozzle_flow = NozzleFlowType::H_FLOW; nozzle_obj.nozzle_flow = NozzleFlowType::H_FLOW;
} else if (type.substr(1, 1) == std::string("A")) {
nozzle_obj.nozzle_flow = NozzleFlowType::S_FLOW;
} else if (type.substr(1, 1) == std::string("X")) {
nozzle_obj.nozzle_flow = NozzleFlowType::S_FLOW;
} }
if (type.substr(2, 2) == std::string("00")) { if (type.substr(2, 2) == std::string("00")) {