FIX:fixed the issue of AMS not updating location

jira:[STUDIO-9182 STUDIO-9216]

Change-Id: I42e57b47abf357cdc99f71e1739ab9fc3a122d85
(cherry picked from commit 43083f1e4834163c11a961e743db1fb7ece52348)
This commit is contained in:
tao wang
2024-12-20 16:44:11 +08:00
committed by Noisyfox
parent 741d8d60da
commit c1c862d2c3
2 changed files with 11 additions and 0 deletions

View File

@@ -4187,6 +4187,11 @@ int MachineObject::parse_json(std::string payload, bool key_field_only)
// new ams added event
curr_ams = new_ams;
} else {
if (nozzle_id != ams_it->second->nozzle) {
ams_it->second->nozzle = nozzle_id;
}
curr_ams = ams_it->second;
}
if (!curr_ams) continue;