mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
FIX:Fix the display issue of uncalibrated AMS
jira:[for uncalibrated ams] Change-Id: I02e3f3548750fd0bd61d64e36a535a0f83371e98 (cherry picked from commit f08d40b42a8193123bdba559cb8eade5ff062b4a)
This commit is contained in:
@@ -4013,6 +4013,7 @@ int MachineObject::parse_json(std::string payload, bool key_field_only)
|
||||
for (auto it = amsList.begin(); it != amsList.end(); it++) {
|
||||
ams_id_set.insert(it->first);
|
||||
}
|
||||
|
||||
for (auto it = j_ams.begin(); it != j_ams.end(); it++) {
|
||||
if (!it->contains("id")) continue;
|
||||
std::string ams_id = (*it)["id"].get<std::string>();
|
||||
@@ -4027,6 +4028,11 @@ int MachineObject::parse_json(std::string payload, bool key_field_only)
|
||||
nozzle_id = get_flag_bits(info, 8, 3);
|
||||
}
|
||||
|
||||
/*AMS without initialization*/
|
||||
if (nozzle_id == 0x0E) {
|
||||
continue;
|
||||
}
|
||||
|
||||
ams_id_set.erase(ams_id);
|
||||
Ams* curr_ams = nullptr;
|
||||
auto ams_it = amsList.find(ams_id);
|
||||
|
||||
Reference in New Issue
Block a user