FIX: disable send print while the ams is during setting up

jira: [STUDIO-9813]
Change-Id: I55dcca9aab4a9923636c1cf7a0a27bc7e4b9586d
(cherry picked from commit 5b800d034266489e5b288aa7a51ce6d244ae06b8)
This commit is contained in:
xin.zhang 2025-01-16 14:52:49 +08:00 committed by Noisyfox
parent c8fa5e1e4e
commit b63e0ee556
4 changed files with 30 additions and 1 deletions

View file

@ -912,6 +912,20 @@ bool MachineObject::is_support_amx_ext_mix_mapping() {
return true;
}
/* the API is developing by AP, not completed now*/
bool MachineObject::is_ams_on_settingup() const
{
for (const auto& ext : m_extder_data.extders)
{
if (ext.ams_stat != 0)
{
return true;
}
}
return false;
}
void MachineObject::get_ams_colors(std::vector<wxColour> &ams_colors) {
ams_colors.clear();
ams_colors.reserve(amsList.size());
@ -4299,6 +4313,8 @@ int MachineObject::parse_json(std::string payload, bool key_field_only)
/*AMS without initialization*/
if (nozzle_id == 0xE) {
ams_id_set.erase(ams_id);
amsList.erase(ams_id);
continue;
}