mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-24 14:16:50 -07:00
ENH:support new chamber temper protocols
jira:[none] Change-Id: Id068b7144eacd03da342a15468d998b80f3cb8f2 (cherry picked from commit 17e0490337b61d0c38d8c17a56ac97c3d4a9034e)
This commit is contained in:
parent
4909c517d1
commit
6fca6f527c
1 changed files with 13 additions and 0 deletions
|
|
@ -5677,6 +5677,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<int>(), 0, 4);
|
||||
|
||||
if (ctc.contains("info")) {
|
||||
json const &info = ctc["info"];
|
||||
chamber_temp = get_flag_bits(info["temp"].get<int>(), 0, 16);
|
||||
chamber_temp_target = get_flag_bits(info["temp"].get<int>(), 16, 16);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue