From 17e0490337b61d0c38d8c17a56ac97c3d4a9034e Mon Sep 17 00:00:00 2001 From: tao wang Date: Mon, 31 Mar 2025 16:57:10 +0800 Subject: [PATCH] ENH:support new chamber temper protocols jira:[none] Change-Id: Id068b7144eacd03da342a15468d998b80f3cb8f2 --- src/slic3r/GUI/DeviceManager.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/slic3r/GUI/DeviceManager.cpp b/src/slic3r/GUI/DeviceManager.cpp index 803efc902..fe9169a34 100644 --- a/src/slic3r/GUI/DeviceManager.cpp +++ b/src/slic3r/GUI/DeviceManager.cpp @@ -6370,6 +6370,19 @@ void MachineObject::parse_new_info(json print) m_extder_data = extder_data; } + + if (device.contains("ctc")) { + json const& ctc = device["ctc"]; + int state = get_flag_bits(ctc["state"].get(), 0, 4); + + if (ctc.contains("info")) { + json const &info = ctc["info"]; + chamber_temp = get_flag_bits(info["temp"].get(), 0, 16); + chamber_temp_target = get_flag_bits(info["temp"].get(), 16, 16); + } + + + } } }